Lines Matching refs:allow_struct

1244             let allow_struct = AllowStruct(true);  in parse_with_earlier_boundary_rule()  localVariable
1245 let atom = expr_group(input, allow_struct)?; in parse_with_earlier_boundary_rule()
1274 let allow_struct = AllowStruct(true); in parse_with_earlier_boundary_rule() localVariable
1275 unary_expr(input, allow_struct)? in parse_with_earlier_boundary_rule()
1282 let allow_struct = AllowStruct(true); in parse_with_earlier_boundary_rule() localVariable
1283 return parse_expr(input, expr, allow_struct, Precedence::MIN); in parse_with_earlier_boundary_rule()
1292 let allow_struct = AllowStruct(true); in parse_with_earlier_boundary_rule() localVariable
1293 return parse_expr(input, expr, allow_struct, Precedence::MIN); in parse_with_earlier_boundary_rule()
1315 allow_struct: AllowStruct, in parse_expr()
1341 let right = parse_binop_rhs(input, allow_struct, precedence)?; in parse_expr()
1357 let right = parse_binop_rhs(input, allow_struct, Precedence::Assign)?; in parse_expr()
1366 let end = parse_range_end(input, &limits, allow_struct)?; in parse_expr()
1437 #[cfg(feature = "full")] allow_struct: AllowStruct, in parse_binop_rhs()
1443 allow_struct, in parse_binop_rhs()
1453 allow_struct, in parse_binop_rhs()
1487 #[cfg(feature = "full")] allow_struct: AllowStruct, in ambiguous_expr()
1492 allow_struct, in ambiguous_expr()
1498 allow_struct, in ambiguous_expr()
1517 fn unary_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> { in unary_expr()
1521 return trailer_expr(begin, attrs, input, allow_struct); in unary_expr()
1539 let expr = Box::new(unary_expr(input, allow_struct)?); in unary_expr()
1560 expr_unary(input, attrs, allow_struct).map(Expr::Unary) in unary_expr()
1562 trailer_expr(begin, attrs, input, allow_struct) in unary_expr()
1597 allow_struct: AllowStruct, in trailer_expr()
1599 let atom = atom_expr(input, allow_struct)?; in trailer_expr()
1794 fn atom_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> { in atom_expr()
1796 expr_group(input, allow_struct) in atom_expr()
1813 expr_closure(input, allow_struct).map(Expr::Closure) in atom_expr()
1826 path_or_macro_or_struct(input, allow_struct) in atom_expr()
1830 expr_break(input, allow_struct).map(Expr::Break) in atom_expr()
1840 expr_let(input, allow_struct).map(Expr::Let) in atom_expr()
1860 expr_range(input, allow_struct).map(Expr::Range) in atom_expr()
1945 #[cfg(feature = "full")] allow_struct: AllowStruct, in path_or_macro_or_struct()
1954 allow_struct, in path_or_macro_or_struct()
1962 #[cfg(feature = "full")] allow_struct: AllowStruct, in rest_of_path_or_macro_or_struct()
1983 let allow_struct = (true,); in rest_of_path_or_macro_or_struct() localVariable
1984 if allow_struct.0 && input.peek(token::Brace) { in rest_of_path_or_macro_or_struct()
2160 #[cfg(feature = "full")] allow_struct: AllowStruct, in expr_group()
2174 allow_struct, in expr_group()
2209 let allow_struct = AllowStruct(true); in parse() localVariable
2210 expr_let(input, allow_struct) in parse()
2215 fn expr_let(input: ParseStream, allow_struct: AllowStruct) -> Result<ExprLet> { in expr_let()
2222 let lhs = unary_expr(input, allow_struct)?; in expr_let()
2223 parse_expr(input, lhs, allow_struct, Precedence::Compare)? in expr_let()
2413 let allow_struct = AllowStruct(true); in parse() localVariable
2414 expr_unary(input, attrs, allow_struct) in parse()
2422 allow_struct: AllowStruct, in expr_unary()
2427 expr: Box::new(unary_expr(input, allow_struct)?), in expr_unary()
2435 let allow_struct = AllowStruct(true); in parse() localVariable
2436 expr_closure(input, allow_struct) in parse()
2444 let allow_struct = AllowStruct(true); in parse() localVariable
2450 expr: Box::new(unary_expr(input, allow_struct)?), in parse()
2459 let allow_struct = AllowStruct(true); in parse() localVariable
2464 expr: Box::new(unary_expr(input, allow_struct)?), in parse()
2473 let allow_struct = AllowStruct(true); in parse() localVariable
2474 expr_break(input, allow_struct) in parse()
2535 fn expr_closure(input: ParseStream, allow_struct: AllowStruct) -> Result<ExprClosure> { in expr_closure()
2571 let body = ambiguous_expr(input, allow_struct)?; in expr_closure()
2718 fn expr_break(input: ParseStream, allow_struct: AllowStruct) -> Result<ExprBreak> { in expr_break()
2737 let expr = if Expr::peek(input) && (allow_struct.0 || !input.peek(token::Brace)) { in expr_break()
2874 fn expr_range(input: ParseStream, allow_struct: AllowStruct) -> Result<ExprRange> { in expr_range()
2876 let end = parse_range_end(input, &limits, allow_struct)?; in expr_range()
2889 allow_struct: AllowStruct, in parse_range_end()
2898 || !allow_struct.0 && input.peek(token::Brace) in parse_range_end()
2916 let end = parse_binop_rhs(input, allow_struct, Precedence::Range)?; in parse_range_end()