Lines Matching refs:attrs
39 pub attrs: Vec<Attribute>,
69 pub attrs: Vec<Attribute>,
102 /// attrs: Vec<Attribute>,
121 /// attrs: {
122 /// let mut attrs = outer_attrs;
123 /// attrs.extend(inner_attrs);
124 /// attrs
184 let attrs = input.call(Attribute::parse_outer)?;
198 return stmt_mac(input, attrs, path).map(Stmt::Macro);
204 stmt_local(input, attrs).map(Stmt::Local)
242 let item = item::parsing::parse_rest_of_item(begin, attrs, input)?;
245 stmt_expr(input, allow_nosemi, attrs)
249 fn stmt_mac(input: ParseStream, attrs: Vec<Attribute>, path: Path) -> Result<StmtMacro> {
255 attrs,
266 fn stmt_local(input: ParseStream, attrs: Vec<Attribute>) -> Result<Local> {
274 attrs: Vec::new(),
288 attrs: Vec::new(),
309 attrs,
320 mut attrs: Vec<Attribute>,
368 attrs.extend(attr_target.replace_attrs(Vec::new()));
369 attr_target.replace_attrs(attrs);
374 Expr::Macro(ExprMacro { attrs, mac })
378 attrs,
429 expr::printing::outer_attrs_to_tokens(&self.attrs, tokens);
447 expr::printing::outer_attrs_to_tokens(&self.attrs, tokens);