Lines Matching refs:attrs
247 pub attrs: Vec<Attribute>,
257 pub attrs: Vec<Attribute>,
268 pub attrs: Vec<Attribute>,
279 pub attrs: Vec<Attribute>,
290 pub attrs: Vec<Attribute>,
301 pub attrs: Vec<Attribute>,
312 pub attrs: Vec<Attribute>,
323 pub attrs: Vec<Attribute>,
334 pub attrs: Vec<Attribute>,
345 pub attrs: Vec<Attribute>,
363 pub attrs: Vec<Attribute>,
373 pub attrs: Vec<Attribute>,
384 pub attrs: Vec<Attribute>,
395 pub attrs: Vec<Attribute>,
413 pub attrs: Vec<Attribute>,
427 pub attrs: Vec<Attribute>,
439 pub attrs: Vec<Attribute>,
450 pub attrs: Vec<Attribute>,
459 pub attrs: Vec<Attribute>,
471 pub attrs: Vec<Attribute>,
480 pub attrs: Vec<Attribute>,
491 pub attrs: Vec<Attribute>,
500 pub attrs: Vec<Attribute>,
512 pub attrs: Vec<Attribute>,
526 pub attrs: Vec<Attribute>,
539 pub attrs: Vec<Attribute>,
549 pub attrs: Vec<Attribute>,
560 pub attrs: Vec<Attribute>,
571 pub attrs: Vec<Attribute>,
583 pub attrs: Vec<Attribute>,
596 pub attrs: Vec<Attribute>,
610 pub attrs: Vec<Attribute>,
620 pub attrs: Vec<Attribute>,
630 pub attrs: Vec<Attribute>,
640 pub attrs: Vec<Attribute>,
650 pub attrs: Vec<Attribute>,
660 pub attrs: Vec<Attribute>,
672 pub attrs: Vec<Attribute>,
681 attrs: Vec::new(),
692 Expr::Array(ExprArray { attrs, .. })
693 | Expr::Assign(ExprAssign { attrs, .. })
694 | Expr::Async(ExprAsync { attrs, .. })
695 | Expr::Await(ExprAwait { attrs, .. })
696 | Expr::Binary(ExprBinary { attrs, .. })
697 | Expr::Block(ExprBlock { attrs, .. })
698 | Expr::Break(ExprBreak { attrs, .. })
699 | Expr::Call(ExprCall { attrs, .. })
700 | Expr::Cast(ExprCast { attrs, .. })
701 | Expr::Closure(ExprClosure { attrs, .. })
702 | Expr::Const(ExprConst { attrs, .. })
703 | Expr::Continue(ExprContinue { attrs, .. })
704 | Expr::Field(ExprField { attrs, .. })
705 | Expr::ForLoop(ExprForLoop { attrs, .. })
706 | Expr::Group(ExprGroup { attrs, .. })
707 | Expr::If(ExprIf { attrs, .. })
708 | Expr::Index(ExprIndex { attrs, .. })
709 | Expr::Infer(ExprInfer { attrs, .. })
710 | Expr::Let(ExprLet { attrs, .. })
711 | Expr::Lit(ExprLit { attrs, .. })
712 | Expr::Loop(ExprLoop { attrs, .. })
713 | Expr::Macro(ExprMacro { attrs, .. })
714 | Expr::Match(ExprMatch { attrs, .. })
715 | Expr::MethodCall(ExprMethodCall { attrs, .. })
716 | Expr::Paren(ExprParen { attrs, .. })
717 | Expr::Path(ExprPath { attrs, .. })
718 | Expr::Range(ExprRange { attrs, .. })
719 | Expr::Reference(ExprReference { attrs, .. })
720 | Expr::Repeat(ExprRepeat { attrs, .. })
721 | Expr::Return(ExprReturn { attrs, .. })
722 | Expr::Struct(ExprStruct { attrs, .. })
723 | Expr::Try(ExprTry { attrs, .. })
724 | Expr::TryBlock(ExprTryBlock { attrs, .. })
725 | Expr::Tuple(ExprTuple { attrs, .. })
726 | Expr::Unary(ExprUnary { attrs, .. })
727 | Expr::Unsafe(ExprUnsafe { attrs, .. })
728 | Expr::While(ExprWhile { attrs, .. })
729 | Expr::Yield(ExprYield { attrs, .. }) => mem::replace(attrs, new),
851 pub attrs: Vec<Attribute>,
893 pub attrs: Vec<Attribute>,
1213 attrs: Vec::new(),
1234 attrs: Vec::new(),
1262 attrs: Vec::new(),
1274 attrs: Vec::new(),
1306 attrs: Vec::new(),
1318 attrs: Vec::new(),
1365 let mut attrs = Vec::new();
1367 attrs.push(input.call(attr::parsing::single_parse_outer)?);
1369 Ok(attrs)
1379 let attrs = input.call(expr_attrs)?;
1381 return trailer_expr(begin, attrs, input, allow_struct);
1402 attrs,
1409 expr_unary(input, attrs, allow_struct).map(Expr::Unary)
1411 trailer_expr(begin, attrs, input, allow_struct)
1419 attrs: Vec::new(),
1426 attrs: Vec::new(),
1444 mut attrs: Vec<Attribute>,
1455 attrs.extend(inner_attrs);
1456 e.replace_attrs(attrs);
1468 attrs: Vec::new(),
1492 attrs: Vec::new(),
1511 attrs: Vec::new(),
1524 attrs: Vec::new(),
1532 attrs: Vec::new(),
1539 attrs: Vec::new(),
1558 attrs: Vec::new(),
1590 attrs: Vec::new(),
1603 attrs: Vec::new(),
1611 attrs: Vec::new(),
1802 attrs: Vec::new(),
1819 attrs: Vec::new(),
1829 attrs: Vec::new(),
1841 attrs: Vec::new(),
1850 attrs: Vec::new(),
1868 attrs: Vec::new(),
1880 attrs: Vec::new(),
1900 attrs: Vec::new(),
1908 attrs: Vec::new(),
1938 attrs: Vec::new(),
1952 attrs: Vec::new(),
1962 let mut attrs = input.call(expr_attrs)?;
1999 attrs.extend(expr.replace_attrs(Vec::new()));
2000 expr.replace_attrs(attrs);
2009 attrs.extend(expr.replace_attrs(Vec::new()));
2010 expr.replace_attrs(attrs);
2016 attrs.extend(expr.replace_attrs(Vec::new()));
2017 expr.replace_attrs(attrs);
2044 attrs: Vec::new(),
2058 Expr::Path(mut expr) if expr.attrs.is_empty() => {
2078 attrs: Vec::new(),
2095 attrs: Vec::new(),
2106 attrs: Vec::new(),
2123 let attrs = input.call(Attribute::parse_outer)?;
2125 attrs,
2149 attrs: Vec::new(),
2165 attrs: input.call(Attribute::parse_outer)?,
2175 let mut attrs = input.call(Attribute::parse_outer)?;
2186 attr::parsing::parse_inner(&content, &mut attrs)?;
2190 attrs,
2205 let mut attrs = input.call(Attribute::parse_outer)?;
2211 attr::parsing::parse_inner(&content, &mut attrs)?;
2215 attrs,
2227 let mut attrs = input.call(Attribute::parse_outer)?;
2233 attr::parsing::parse_inner(&content, &mut attrs)?;
2241 attrs,
2293 let attrs = Vec::new();
2295 expr_unary(input, attrs, allow_struct)
2302 attrs: Vec<Attribute>,
2306 attrs,
2327 attrs: Vec::new(),
2358 attrs: Vec::new(),
2370 attrs: Vec::new(),
2414 attrs: Vec::new(),
2425 attrs: Vec::new(),
2444 attrs: Vec::new(),
2454 let attrs = input.call(Attribute::parse_outer)?;
2459 attrs,
2466 Pat::Const(pat) => pat.attrs = attrs,
2467 Pat::Ident(pat) => pat.attrs = attrs,
2468 Pat::Lit(pat) => pat.attrs = attrs,
2469 Pat::Macro(pat) => pat.attrs = attrs,
2470 Pat::Or(pat) => pat.attrs = attrs,
2471 Pat::Paren(pat) => pat.attrs = attrs,
2472 Pat::Path(pat) => pat.attrs = attrs,
2473 Pat::Range(pat) => pat.attrs = attrs,
2474 Pat::Reference(pat) => pat.attrs = attrs,
2475 Pat::Rest(pat) => pat.attrs = attrs,
2476 Pat::Slice(pat) => pat.attrs = attrs,
2477 Pat::Struct(pat) => pat.attrs = attrs,
2478 Pat::Tuple(pat) => pat.attrs = attrs,
2479 Pat::TupleStruct(pat) => pat.attrs = attrs,
2482 Pat::Wild(pat) => pat.attrs = attrs,
2492 let mut attrs = input.call(Attribute::parse_outer)?;
2499 attr::parsing::parse_inner(&content, &mut attrs)?;
2503 attrs,
2524 attrs: inner_attrs,
2559 attrs: Vec::new(),
2594 attrs: Vec::new(),
2604 attrs: Vec::new(),
2625 let attrs = input.call(Attribute::parse_outer)?;
2633 attrs: Vec::new(),
2643 attrs,
2671 attrs: Vec::new(),
2694 attrs: Vec::new(),
2716 attrs: inner_attrs,
2727 let mut attrs = input.call(Attribute::parse_outer)?;
2732 attr::parsing::parse_inner(&content, &mut attrs)?;
2736 attrs,
2759 attrs: Vec::new(),
2808 let attrs = Vec::new();
2810 let attrs = input.call(Attribute::parse_outer)?;
2814 Ok(ExprPath { attrs, qself, path })
2837 attrs: input.call(Attribute::parse_outer)?,
2901 attrs: Vec::new(),
2971 pub(crate) fn outer_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) {
2972 tokens.append_all(attrs.outer());
2976 fn inner_attrs_to_tokens(attrs: &[Attribute], tokens: &mut TokenStream) {
2977 tokens.append_all(attrs.inner());
2987 outer_attrs_to_tokens(&self.attrs, tokens);
2998 outer_attrs_to_tokens(&self.attrs, tokens);
3009 outer_attrs_to_tokens(&self.attrs, tokens);
3020 outer_attrs_to_tokens(&self.attrs, tokens);
3030 outer_attrs_to_tokens(&self.attrs, tokens);
3041 outer_attrs_to_tokens(&self.attrs, tokens);
3044 inner_attrs_to_tokens(&self.attrs, tokens);
3054 outer_attrs_to_tokens(&self.attrs, tokens);
3064 outer_attrs_to_tokens(&self.attrs, tokens);
3075 outer_attrs_to_tokens(&self.attrs, tokens);
3086 outer_attrs_to_tokens(&self.attrs, tokens);
3104 outer_attrs_to_tokens(&self.attrs, tokens);
3107 inner_attrs_to_tokens(&self.attrs, tokens);
3117 outer_attrs_to_tokens(&self.attrs, tokens);
3126 outer_attrs_to_tokens(&self.attrs, tokens);
3137 outer_attrs_to_tokens(&self.attrs, tokens);
3144 inner_attrs_to_tokens(&self.attrs, tokens);
3153 outer_attrs_to_tokens(&self.attrs, tokens);
3164 outer_attrs_to_tokens(&self.attrs, tokens);
3183 outer_attrs_to_tokens(&self.attrs, tokens);
3195 outer_attrs_to_tokens(&self.attrs, tokens);
3204 outer_attrs_to_tokens(&self.attrs, tokens);
3215 outer_attrs_to_tokens(&self.attrs, tokens);
3224 outer_attrs_to_tokens(&self.attrs, tokens);
3228 inner_attrs_to_tokens(&self.attrs, tokens);
3237 outer_attrs_to_tokens(&self.attrs, tokens);
3246 outer_attrs_to_tokens(&self.attrs, tokens);
3250 inner_attrs_to_tokens(&self.attrs, tokens);
3267 outer_attrs_to_tokens(&self.attrs, tokens);
3281 outer_attrs_to_tokens(&self.attrs, tokens);
3291 outer_attrs_to_tokens(&self.attrs, tokens);
3300 outer_attrs_to_tokens(&self.attrs, tokens);
3310 outer_attrs_to_tokens(&self.attrs, tokens);
3321 outer_attrs_to_tokens(&self.attrs, tokens);
3334 outer_attrs_to_tokens(&self.attrs, tokens);
3343 outer_attrs_to_tokens(&self.attrs, tokens);
3361 outer_attrs_to_tokens(&self.attrs, tokens);
3371 outer_attrs_to_tokens(&self.attrs, tokens);
3381 outer_attrs_to_tokens(&self.attrs, tokens);
3396 outer_attrs_to_tokens(&self.attrs, tokens);
3406 outer_attrs_to_tokens(&self.attrs, tokens);
3409 inner_attrs_to_tokens(&self.attrs, tokens);
3419 outer_attrs_to_tokens(&self.attrs, tokens);
3424 inner_attrs_to_tokens(&self.attrs, tokens);
3434 outer_attrs_to_tokens(&self.attrs, tokens);
3444 tokens.append_all(&self.attrs);
3459 outer_attrs_to_tokens(&self.attrs, tokens);