Lines Matching refs:tokens
45 /// - Meta::List — attributes that carry arbitrary tokens after the
72 /// # Parsing from tokens to Attribute
117 /// `Meta::List` variety of attribute are held in an arbitrary `tokens:
119 /// decide whether they recognize it, and then parse the remaining tokens
121 /// attribute. Use [`parse_args()`] to parse those tokens into the expected
185 /// doing `syn::parse2::<T>(meta_list.tokens)`, except that using
186 /// `parse_args` the error message has a more useful span when `tokens` is
395 /// [*Parsing from tokens to Attribute*](#parsing-from-tokens-to-attribute).
411 /// [*Parsing from tokens to Attribute*](#parsing-from-tokens-to-attribute).
482 pub tokens: TokenStream,
571 crate::parse::parse_scoped(parser, scope, self.tokens.clone())
685 let (delimiter, tokens) = mac::parse_delimiter(input)?;
689 tokens,
749 fn to_tokens(&self, tokens: &mut TokenStream) {
750 self.pound_token.to_tokens(tokens);
752 b.to_tokens(tokens);
754 self.bracket_token.surround(tokens, |tokens| {
755 self.meta.to_tokens(tokens);
762 fn to_tokens(&self, tokens: &mut TokenStream) {
763 self.path.to_tokens(tokens);
764 self.delimiter.surround(tokens, self.tokens.clone());
770 fn to_tokens(&self, tokens: &mut TokenStream) {
771 self.path.to_tokens(tokens);
772 self.eq_token.to_tokens(tokens);
773 self.value.to_tokens(tokens);