Lines Matching refs:tokens
20 pub tokens: TokenStream,
45 /// Parse the tokens within the macro invocation's delimiters into a syntax
48 /// This is equivalent to `syn::parse2::<T>(mac.tokens)` except that it
49 /// produces a more useful span when `tokens` is empty.
133 /// Parse the tokens within the macro invocation's delimiters using the
139 crate::parse::parse_scoped(parser, scope, self.tokens.clone())
171 let tokens;
177 tokens = content;
180 tokens,
193 pub(crate) fn surround(&self, tokens: &mut TokenStream, inner: TokenStream) {
199 token::printing::delim(delim, span.join(), tokens, inner);
205 fn to_tokens(&self, tokens: &mut TokenStream) {
206 self.path.to_tokens(tokens);
207 self.bang_token.to_tokens(tokens);
208 self.delimiter.surround(tokens, self.tokens.clone());