Lines Matching refs:attrs

261         pub attrs: Vec<Attribute>,
273 pub attrs: Vec<Attribute>,
286 pub attrs: Vec<Attribute>,
299 pub attrs: Vec<Attribute>,
312 pub attrs: Vec<Attribute>,
326 pub attrs: Vec<Attribute>,
339 pub attrs: Vec<Attribute>,
351 pub attrs: Vec<Attribute>,
364 pub attrs: Vec<Attribute>,
378 pub attrs: Vec<Attribute>,
392 pub attrs: Vec<Attribute>,
405 pub attrs: Vec<Attribute>,
423 pub attrs: Vec<Attribute>,
436 pub attrs: Vec<Attribute>,
449 pub attrs: Vec<Attribute>,
469 pub attrs: Vec<Attribute>,
485 pub attrs: Vec<Attribute>,
500 pub attrs: Vec<Attribute>,
513 pub attrs: Vec<Attribute>,
528 pub attrs: Vec<Attribute>,
539 pub attrs: Vec<Attribute>,
552 pub attrs: Vec<Attribute>,
563 pub attrs: Vec<Attribute>,
577 pub attrs: Vec<Attribute>,
593 pub attrs: Vec<Attribute>,
609 pub attrs: Vec<Attribute>,
621 pub attrs: Vec<Attribute>,
634 pub attrs: Vec<Attribute>,
648 pub attrs: Vec<Attribute>,
662 pub attrs: Vec<Attribute>,
677 pub attrs: Vec<Attribute>,
692 pub attrs: Vec<Attribute>,
704 pub attrs: Vec<Attribute>,
716 pub attrs: Vec<Attribute>,
728 pub attrs: Vec<Attribute>,
742 pub attrs: Vec<Attribute>,
754 pub attrs: Vec<Attribute>,
766 pub attrs: Vec<Attribute>,
780 pub attrs: Vec<Attribute>,
790 Expr::Box(ExprBox { attrs, .. }) in replace_attrs()
791 | Expr::Array(ExprArray { attrs, .. }) in replace_attrs()
792 | Expr::Call(ExprCall { attrs, .. }) in replace_attrs()
793 | Expr::MethodCall(ExprMethodCall { attrs, .. }) in replace_attrs()
794 | Expr::Tuple(ExprTuple { attrs, .. }) in replace_attrs()
795 | Expr::Binary(ExprBinary { attrs, .. }) in replace_attrs()
796 | Expr::Unary(ExprUnary { attrs, .. }) in replace_attrs()
797 | Expr::Lit(ExprLit { attrs, .. }) in replace_attrs()
798 | Expr::Cast(ExprCast { attrs, .. }) in replace_attrs()
799 | Expr::Type(ExprType { attrs, .. }) in replace_attrs()
800 | Expr::Let(ExprLet { attrs, .. }) in replace_attrs()
801 | Expr::If(ExprIf { attrs, .. }) in replace_attrs()
802 | Expr::While(ExprWhile { attrs, .. }) in replace_attrs()
803 | Expr::ForLoop(ExprForLoop { attrs, .. }) in replace_attrs()
804 | Expr::Loop(ExprLoop { attrs, .. }) in replace_attrs()
805 | Expr::Match(ExprMatch { attrs, .. }) in replace_attrs()
806 | Expr::Closure(ExprClosure { attrs, .. }) in replace_attrs()
807 | Expr::Unsafe(ExprUnsafe { attrs, .. }) in replace_attrs()
808 | Expr::Block(ExprBlock { attrs, .. }) in replace_attrs()
809 | Expr::Assign(ExprAssign { attrs, .. }) in replace_attrs()
810 | Expr::AssignOp(ExprAssignOp { attrs, .. }) in replace_attrs()
811 | Expr::Field(ExprField { attrs, .. }) in replace_attrs()
812 | Expr::Index(ExprIndex { attrs, .. }) in replace_attrs()
813 | Expr::Range(ExprRange { attrs, .. }) in replace_attrs()
814 | Expr::Path(ExprPath { attrs, .. }) in replace_attrs()
815 | Expr::Reference(ExprReference { attrs, .. }) in replace_attrs()
816 | Expr::Break(ExprBreak { attrs, .. }) in replace_attrs()
817 | Expr::Continue(ExprContinue { attrs, .. }) in replace_attrs()
818 | Expr::Return(ExprReturn { attrs, .. }) in replace_attrs()
819 | Expr::Macro(ExprMacro { attrs, .. }) in replace_attrs()
820 | Expr::Struct(ExprStruct { attrs, .. }) in replace_attrs()
821 | Expr::Repeat(ExprRepeat { attrs, .. }) in replace_attrs()
822 | Expr::Paren(ExprParen { attrs, .. }) in replace_attrs()
823 | Expr::Group(ExprGroup { attrs, .. }) in replace_attrs()
824 | Expr::Try(ExprTry { attrs, .. }) in replace_attrs()
825 | Expr::Async(ExprAsync { attrs, .. }) in replace_attrs()
826 | Expr::Await(ExprAwait { attrs, .. }) in replace_attrs()
827 | Expr::TryBlock(ExprTryBlock { attrs, .. }) in replace_attrs()
828 | Expr::Yield(ExprYield { attrs, .. }) => mem::replace(attrs, new), in replace_attrs()
979 pub attrs: Vec<Attribute>,
1028 pub attrs: Vec<Attribute>,
1286 attrs: Vec::new(), in parse_expr()
1293 attrs: Vec::new(), in parse_expr()
1315 attrs: Vec::new(), in parse_expr()
1341 attrs: Vec::new(), in parse_expr()
1350 attrs: Vec::new(), in parse_expr()
1359 attrs: Vec::new(), in parse_expr()
1397 attrs: Vec::new(), in parse_expr()
1406 attrs: Vec::new(), in parse_expr()
1442 let mut attrs = Vec::new(); in expr_attrs() localVariable
1454 attrs.push(attr); in expr_attrs()
1456 attrs.push(input.call(attr::parsing::single_parse_outer)?); in expr_attrs()
1461 Ok(attrs) in expr_attrs()
1471 let attrs = input.call(expr_attrs)?; in unary_expr() localVariable
1489 attrs, in unary_expr()
1497 expr_box(input, attrs, allow_struct).map(Expr::Box) in unary_expr()
1499 expr_unary(input, attrs, allow_struct).map(Expr::Unary) in unary_expr()
1501 trailer_expr(attrs, input, allow_struct) in unary_expr()
1509 attrs: Vec::new(), in unary_expr()
1534 let attrs = private::attrs(outer_attrs, inner_attrs); in trailer_expr() localVariable
1535 e.replace_attrs(attrs); in trailer_expr()
1545 attrs: Vec::new(), in trailer_helper()
1556 attrs: Vec::new(), in trailer_helper()
1602 attrs: Vec::new(), in trailer_helper()
1615 attrs: Vec::new(), in trailer_helper()
1623 attrs: Vec::new(), in trailer_helper()
1630 attrs: Vec::new(), in trailer_helper()
1649 attrs: Vec::new(), in trailer_expr()
1664 attrs: Vec::new(), in trailer_expr()
1672 attrs: Vec::new(), in trailer_expr()
1822 attrs: Vec::new(), in path_or_macro_or_struct()
1846 attrs: Vec::new(), in parse()
1859 attrs: inner_attrs, in paren_or_tuple()
1868 attrs: inner_attrs, in paren_or_tuple()
1886 attrs: inner_attrs, in paren_or_tuple()
1899 attrs: inner_attrs, in array_or_repeat()
1919 attrs: inner_attrs, in array_or_repeat()
1927 attrs: inner_attrs, in array_or_repeat()
1958 attrs: inner_attrs, in parse()
1972 attrs: content.call(Attribute::parse_inner)?, in parse()
1982 let mut attrs = input.call(expr_attrs)?; in expr_early() localVariable
2005 attrs.extend(expr.replace_attrs(Vec::new())); in expr_early()
2006 expr.replace_attrs(attrs); in expr_early()
2014 attrs.extend(expr.replace_attrs(Vec::new())); in expr_early()
2015 expr.replace_attrs(attrs); in expr_early()
2021 attrs.extend(expr.replace_attrs(Vec::new())); in expr_early()
2022 expr.replace_attrs(attrs); in expr_early()
2030 attrs: Vec::new(), in parse()
2040 attrs: Vec::new(), in expr_group()
2057 attrs: Vec::new(), in expr_paren()
2083 attrs: Vec::new(), in parse()
2096 let attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2098 attrs, in parse()
2122 attrs: Vec::new(), in else_block()
2152 attrs: private::attrs(outer_attrs, inner_attrs), in parse()
2177 attrs: private::attrs(outer_attrs, inner_attrs), in parse()
2203 attrs: private::attrs(outer_attrs, inner_attrs), in parse()
2256 let attrs = Vec::new(); in parse() localVariable
2258 expr_box(input, attrs, allow_struct) in parse()
2265 attrs: Vec<Attribute>, in expr_box()
2269 attrs, in expr_box()
2279 let attrs = Vec::new(); in parse() localVariable
2281 expr_unary(input, attrs, allow_struct) in parse()
2288 attrs: Vec<Attribute>, in expr_unary()
2292 attrs, in expr_unary()
2313 attrs: Vec::new(), in parse()
2345 attrs: Vec::new(), in parse()
2357 attrs: Vec::new(), in parse()
2403 attrs: Vec::new(), in expr_closure()
2414 attrs: Vec::new(), in expr_closure()
2431 attrs: Vec::new(), in parse()
2441 let attrs = input.call(Attribute::parse_outer)?; in closure_arg() localVariable
2446 attrs, in closure_arg()
2453 Pat::Box(pat) => pat.attrs = attrs, in closure_arg()
2454 Pat::Ident(pat) => pat.attrs = attrs, in closure_arg()
2455 Pat::Lit(pat) => pat.attrs = attrs, in closure_arg()
2456 Pat::Macro(pat) => pat.attrs = attrs, in closure_arg()
2457 Pat::Or(pat) => pat.attrs = attrs, in closure_arg()
2458 Pat::Path(pat) => pat.attrs = attrs, in closure_arg()
2459 Pat::Range(pat) => pat.attrs = attrs, in closure_arg()
2460 Pat::Reference(pat) => pat.attrs = attrs, in closure_arg()
2461 Pat::Rest(pat) => pat.attrs = attrs, in closure_arg()
2462 Pat::Slice(pat) => pat.attrs = attrs, in closure_arg()
2463 Pat::Struct(pat) => pat.attrs = attrs, in closure_arg()
2464 Pat::Tuple(pat) => pat.attrs = attrs, in closure_arg()
2465 Pat::TupleStruct(pat) => pat.attrs = attrs, in closure_arg()
2468 Pat::Wild(pat) => pat.attrs = attrs, in closure_arg()
2494 attrs: private::attrs(outer_attrs, inner_attrs), in parse()
2531 attrs: Vec::new(), in parse()
2541 attrs: Vec::new(), in expr_break()
2562 attrs: Vec::new(), in expr_ret()
2584 let attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2592 attrs: Vec::new(), in parse()
2602 attrs, in parse()
2614 let attrs = Vec::new(); in parse() localVariable
2616 expr_struct_helper(input, attrs, path) in parse()
2629 let attrs = private::attrs(outer_attrs, inner_attrs); in expr_struct_helper() localVariable
2635 attrs, in expr_struct_helper()
2657 attrs, in expr_struct_helper()
2678 attrs: inner_attrs, in parse()
2711 attrs: private::attrs(outer_attrs, inner_attrs), in parse()
2721 attrs: Vec::new(), in expr_range()
2761 let attrs = Vec::new(); in parse() localVariable
2763 let attrs = input.call(Attribute::parse_outer)?; in parse() localVariable
2767 Ok(ExprPath { attrs, qself, path }) in parse()
2790 attrs: input.call(Attribute::parse_outer)?, in parse()
2846 attrs: Vec::new(), in multi_index()
2889 pub(crate) fn outer_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) { in outer_attrs_to_tokens()
2890 tokens.append_all(attrs.outer()); in outer_attrs_to_tokens()
2894 fn inner_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) { in inner_attrs_to_tokens()
2895 tokens.append_all(attrs.inner()); in inner_attrs_to_tokens()
2908 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
2918 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
2920 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
2929 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
2941 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
2978 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
2980 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
2994 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3004 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3013 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3021 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3032 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3063 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3075 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3087 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3092 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3102 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3109 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3119 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3123 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3133 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3137 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3155 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3166 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3177 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3187 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3197 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3213 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3216 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3226 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3229 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3239 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3250 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3260 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3289 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3301 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3314 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3323 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3334 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3345 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3355 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3365 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3374 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3377 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3393 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3395 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3407 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3417 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3419 inner_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3429 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3448 outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
3461 tokens.append_all(&self.attrs); in to_tokens()