Lines Matching refs:attrs
275 pub attrs: Vec<Attribute>,
285 pub attrs: Vec<Attribute>,
296 pub attrs: Vec<Attribute>,
307 pub attrs: Vec<Attribute>,
318 pub attrs: Vec<Attribute>,
329 pub attrs: Vec<Attribute>,
340 pub attrs: Vec<Attribute>,
351 pub attrs: Vec<Attribute>,
362 pub attrs: Vec<Attribute>,
373 pub attrs: Vec<Attribute>,
391 pub attrs: Vec<Attribute>,
401 pub attrs: Vec<Attribute>,
412 pub attrs: Vec<Attribute>,
423 pub attrs: Vec<Attribute>,
441 pub attrs: Vec<Attribute>,
455 pub attrs: Vec<Attribute>,
467 pub attrs: Vec<Attribute>,
478 pub attrs: Vec<Attribute>,
487 pub attrs: Vec<Attribute>,
499 pub attrs: Vec<Attribute>,
508 pub attrs: Vec<Attribute>,
519 pub attrs: Vec<Attribute>,
528 pub attrs: Vec<Attribute>,
540 pub attrs: Vec<Attribute>,
554 pub attrs: Vec<Attribute>,
567 pub attrs: Vec<Attribute>,
577 pub attrs: Vec<Attribute>,
588 pub attrs: Vec<Attribute>,
600 pub attrs: Vec<Attribute>,
611 pub attrs: Vec<Attribute>,
623 pub attrs: Vec<Attribute>,
636 pub attrs: Vec<Attribute>,
650 pub attrs: Vec<Attribute>,
660 pub attrs: Vec<Attribute>,
670 pub attrs: Vec<Attribute>,
680 pub attrs: Vec<Attribute>,
690 pub attrs: Vec<Attribute>,
700 pub attrs: Vec<Attribute>,
712 pub attrs: Vec<Attribute>,
739 attrs: Vec::new(),
929 Expr::Array(ExprArray { attrs, .. }) in replace_attrs()
930 | Expr::Assign(ExprAssign { attrs, .. }) in replace_attrs()
931 | Expr::Async(ExprAsync { attrs, .. }) in replace_attrs()
932 | Expr::Await(ExprAwait { attrs, .. }) in replace_attrs()
933 | Expr::Binary(ExprBinary { attrs, .. }) in replace_attrs()
934 | Expr::Block(ExprBlock { attrs, .. }) in replace_attrs()
935 | Expr::Break(ExprBreak { attrs, .. }) in replace_attrs()
936 | Expr::Call(ExprCall { attrs, .. }) in replace_attrs()
937 | Expr::Cast(ExprCast { attrs, .. }) in replace_attrs()
938 | Expr::Closure(ExprClosure { attrs, .. }) in replace_attrs()
939 | Expr::Const(ExprConst { attrs, .. }) in replace_attrs()
940 | Expr::Continue(ExprContinue { attrs, .. }) in replace_attrs()
941 | Expr::Field(ExprField { attrs, .. }) in replace_attrs()
942 | Expr::ForLoop(ExprForLoop { attrs, .. }) in replace_attrs()
943 | Expr::Group(ExprGroup { attrs, .. }) in replace_attrs()
944 | Expr::If(ExprIf { attrs, .. }) in replace_attrs()
945 | Expr::Index(ExprIndex { attrs, .. }) in replace_attrs()
946 | Expr::Infer(ExprInfer { attrs, .. }) in replace_attrs()
947 | Expr::Let(ExprLet { attrs, .. }) in replace_attrs()
948 | Expr::Lit(ExprLit { attrs, .. }) in replace_attrs()
949 | Expr::Loop(ExprLoop { attrs, .. }) in replace_attrs()
950 | Expr::Macro(ExprMacro { attrs, .. }) in replace_attrs()
951 | Expr::Match(ExprMatch { attrs, .. }) in replace_attrs()
952 | Expr::MethodCall(ExprMethodCall { attrs, .. }) in replace_attrs()
953 | Expr::Paren(ExprParen { attrs, .. }) in replace_attrs()
954 | Expr::Path(ExprPath { attrs, .. }) in replace_attrs()
955 | Expr::Range(ExprRange { attrs, .. }) in replace_attrs()
956 | Expr::RawAddr(ExprRawAddr { attrs, .. }) in replace_attrs()
957 | Expr::Reference(ExprReference { attrs, .. }) in replace_attrs()
958 | Expr::Repeat(ExprRepeat { attrs, .. }) in replace_attrs()
959 | Expr::Return(ExprReturn { attrs, .. }) in replace_attrs()
960 | Expr::Struct(ExprStruct { attrs, .. }) in replace_attrs()
961 | Expr::Try(ExprTry { attrs, .. }) in replace_attrs()
962 | Expr::TryBlock(ExprTryBlock { attrs, .. }) in replace_attrs()
963 | Expr::Tuple(ExprTuple { attrs, .. }) in replace_attrs()
964 | Expr::Unary(ExprUnary { attrs, .. }) in replace_attrs()
965 | Expr::Unsafe(ExprUnsafe { attrs, .. }) in replace_attrs()
966 | Expr::While(ExprWhile { attrs, .. }) in replace_attrs()
967 | Expr::Yield(ExprYield { attrs, .. }) => mem::replace(attrs, new), in replace_attrs()
1099 pub attrs: Vec<Attribute>,
1141 pub attrs: Vec<Attribute>,
1242 let mut attrs = input.call(expr_attrs)?; in parse_with_earlier_boundary_rule() localVariable
1279 attrs.extend(expr.replace_attrs(Vec::new())); in parse_with_earlier_boundary_rule()
1280 expr.replace_attrs(attrs); in parse_with_earlier_boundary_rule()
1289 attrs.extend(expr.replace_attrs(Vec::new())); in parse_with_earlier_boundary_rule()
1290 expr.replace_attrs(attrs); in parse_with_earlier_boundary_rule()
1296 attrs.extend(expr.replace_attrs(Vec::new())); in parse_with_earlier_boundary_rule()
1297 expr.replace_attrs(attrs); in parse_with_earlier_boundary_rule()
1343 attrs: Vec::new(), in parse_expr()
1359 attrs: Vec::new(), in parse_expr()
1368 attrs: Vec::new(), in parse_expr()
1380 attrs: Vec::new(), in parse_expr()
1411 attrs: Vec::new(), in parse_expr()
1423 attrs: Vec::new(), in parse_expr()
1505 let mut attrs = Vec::new(); in expr_attrs() localVariable
1507 attrs.push(input.call(attr::parsing::single_parse_outer)?); in expr_attrs()
1509 Ok(attrs) in expr_attrs()
1519 let attrs = input.call(expr_attrs)?; in unary_expr() localVariable
1521 return trailer_expr(begin, attrs, input, allow_struct); in unary_expr()
1542 attrs, in unary_expr()
1553 attrs, 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()
1570 attrs: Vec::new(), in unary_expr()
1577 attrs: Vec::new(), in unary_expr()
1595 mut attrs: Vec<Attribute>, in trailer_expr()
1604 } else if !attrs.is_empty() { in trailer_expr()
1617 attrs.extend(inner_attrs); in trailer_expr()
1618 e.replace_attrs(attrs); in trailer_expr()
1630 attrs: Vec::new(), in trailer_helper()
1654 attrs: Vec::new(), in trailer_helper()
1673 attrs: Vec::new(), in trailer_helper()
1686 attrs: Vec::new(), in trailer_helper()
1694 attrs: Vec::new(), in trailer_helper()
1706 attrs: Vec::new(), in trailer_helper()
1725 attrs: Vec::new(), in trailer_expr()
1757 attrs: Vec::new(), in trailer_expr()
1770 attrs: Vec::new(), in trailer_expr()
1778 attrs: Vec::new(), in trailer_expr()
1972 attrs: Vec::new(), in rest_of_path_or_macro_or_struct()
1989 attrs: Vec::new(), in rest_of_path_or_macro_or_struct()
1999 attrs: Vec::new(), in parse()
2010 attrs: Vec::new(), in paren_or_tuple()
2019 attrs: Vec::new(), in paren_or_tuple()
2037 attrs: Vec::new(), in paren_or_tuple()
2049 attrs: Vec::new(), in array_or_repeat()
2069 attrs: Vec::new(), in array_or_repeat()
2077 attrs: Vec::new(), in array_or_repeat()
2107 attrs: Vec::new(), in parse()
2121 attrs: Vec::new(), in parse()
2152 attrs: Vec::new(), in parse()
2166 Expr::Path(mut expr) if expr.attrs.is_empty() => { in expr_group()
2186 attrs: Vec::new(), in expr_group()
2198 attrs: Vec::new(), in parse()
2217 attrs: Vec::new(), in expr_let()
2232 let attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2242 attrs: Vec::new(), in parse()
2262 attrs: Vec::new(), in parse()
2277 expr.attrs = attrs; in parse()
2287 attrs: input.call(Attribute::parse_outer)?, in parse()
2297 let mut attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2308 attr::parsing::parse_inner(&content, &mut attrs)?; in parse()
2312 attrs, in parse()
2327 let mut attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2333 attr::parsing::parse_inner(&content, &mut attrs)?; in parse()
2337 attrs, in parse()
2349 let mut attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2355 attr::parsing::parse_inner(&content, &mut attrs)?; in parse()
2360 attrs, in parse()
2412 let attrs = Vec::new(); in parse() localVariable
2414 expr_unary(input, attrs, allow_struct) in parse()
2421 attrs: Vec<Attribute>, in expr_unary()
2425 attrs, in expr_unary()
2446 attrs: Vec::new(), in parse()
2461 attrs: Vec::new(), in parse()
2483 attrs: Vec::new(), in parse()
2509 attrs: Vec::new(), in parse()
2521 attrs: Vec::new(), in parse()
2565 attrs: Vec::new(), in expr_closure()
2576 attrs: Vec::new(), in expr_closure()
2595 attrs: Vec::new(), in parse()
2605 let attrs = input.call(Attribute::parse_outer)?; in closure_arg() localVariable
2610 attrs, in closure_arg()
2617 Pat::Const(pat) => pat.attrs = attrs, in closure_arg()
2618 Pat::Ident(pat) => pat.attrs = attrs, in closure_arg()
2619 Pat::Lit(pat) => pat.attrs = attrs, in closure_arg()
2620 Pat::Macro(pat) => pat.attrs = attrs, in closure_arg()
2621 Pat::Or(pat) => pat.attrs = attrs, in closure_arg()
2622 Pat::Paren(pat) => pat.attrs = attrs, in closure_arg()
2623 Pat::Path(pat) => pat.attrs = attrs, in closure_arg()
2624 Pat::Range(pat) => pat.attrs = attrs, in closure_arg()
2625 Pat::Reference(pat) => pat.attrs = attrs, in closure_arg()
2626 Pat::Rest(pat) => pat.attrs = attrs, in closure_arg()
2627 Pat::Slice(pat) => pat.attrs = attrs, in closure_arg()
2628 Pat::Struct(pat) => pat.attrs = attrs, in closure_arg()
2629 Pat::Tuple(pat) => pat.attrs = attrs, in closure_arg()
2630 Pat::TupleStruct(pat) => pat.attrs = attrs, in closure_arg()
2633 Pat::Wild(pat) => pat.attrs = attrs, in closure_arg()
2643 let mut attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2650 attr::parsing::parse_inner(&content, &mut attrs)?; in parse()
2654 attrs, in parse()
2675 attrs: inner_attrs, in parse()
2710 attrs: Vec::new(), in parse()
2744 attrs: Vec::new(), in expr_break()
2754 let attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2762 attrs: Vec::new(), in parse()
2772 attrs, in parse()
2801 attrs: Vec::new(), in expr_struct_helper()
2824 attrs: Vec::new(), in expr_struct_helper()
2846 attrs: inner_attrs, in parse()
2857 let mut attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2862 attr::parsing::parse_inner(&content, &mut attrs)?; in parse()
2866 attrs, in parse()
2878 attrs: Vec::new(), in expr_range()
2963 let attrs = Vec::new(); in parse() localVariable
2965 let attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2970 Ok(ExprPath { attrs, qself, path }) in parse()
3004 attrs: input.call(Attribute::parse_outer)?, in parse()
3068 attrs: Vec::new(), in multi_index()
3153 pub(crate) fn outer_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) { in outer_attrs_to_tokens()
3154 tokens.append_all(attrs.outer()); in outer_attrs_to_tokens()
3158 fn inner_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) { in inner_attrs_to_tokens()
3159 tokens.append_all(attrs.inner()); in inner_attrs_to_tokens()
3286 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3303 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_assign()
3305 let needs_group = !e.attrs.is_empty(); in print_expr_assign()
3337 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3354 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_await()
3374 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_binary()
3376 let needs_group = !e.attrs.is_empty(); in print_expr_binary()
3437 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3440 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3456 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_break()
3479 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_call()
3509 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_cast()
3511 let needs_group = !e.attrs.is_empty(); in print_expr_cast()
3547 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_closure()
3558 … || matches!(&*e.body, Expr::Block(body) if body.attrs.is_empty() && body.label.is_none()) in print_expr_closure()
3576 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3579 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3589 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3603 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_field()
3619 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3626 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3635 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3646 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3689 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_index()
3713 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3728 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_let()
3739 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3748 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3752 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3761 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3770 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3774 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3799 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_method_call()
3824 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3834 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3849 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_range()
3851 let needs_group = !e.attrs.is_empty(); in print_expr_range()
3892 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_raw_addr()
3913 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_reference()
3933 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3952 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_return()
3966 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3990 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_try()
4005 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
4014 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
4034 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_unary()
4053 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
4056 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
4066 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
4071 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
4087 outer_attrs_to_tokens(&e.attrs, tokens); in print_expr_yield()
4102 tokens.append_all(&self.attrs); in to_tokens()
4117 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()