Lines Matching refs:tokens
90 if let Type::Verbatim(tokens) = &**ty { in parse()
91 if let Ok(dots) = parse2(tokens.clone()) { in parse()
195 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
196 self.brace_token.surround(tokens, |tokens| { in to_tokens()
197 tokens.append_all(self.stmts.clone()); in to_tokens()
213 let tokens = match pat.ty.as_ref() { in has_variadic() localVariable
214 Type::Verbatim(tokens) => tokens, in has_variadic()
218 tokens.to_string() == "..." in has_variadic()
222 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
223 self.constness.to_tokens(tokens); in to_tokens()
224 self.asyncness.to_tokens(tokens); in to_tokens()
225 self.unsafety.to_tokens(tokens); in to_tokens()
226 self.abi.to_tokens(tokens); in to_tokens()
227 self.fn_token.to_tokens(tokens); in to_tokens()
228 self.ident.to_tokens(tokens); in to_tokens()
229 self.generics.to_tokens(tokens); in to_tokens()
230 self.paren_token.surround(tokens, |tokens| { in to_tokens()
231 self.inputs.to_tokens(tokens); in to_tokens()
234 <Token![,]>::default().to_tokens(tokens); in to_tokens()
236 self.variadic.to_tokens(tokens); in to_tokens()
239 self.output.to_tokens(tokens); in to_tokens()
240 self.generics.where_clause.to_tokens(tokens); in to_tokens()
245 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
246 tokens.append_all(&self.attrs); in to_tokens()
247 self.vis.to_tokens(tokens); in to_tokens()
248 self.sig.to_tokens(tokens); in to_tokens()
249 self.block.brace_token.surround(tokens, |tokens| { in to_tokens()
250 tokens.append_all(self.block.stmts.clone()); in to_tokens()
256 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
257 tokens.append_all(&self.attrs); in to_tokens()
259 ampersand.to_tokens(tokens); in to_tokens()
260 lifetime.to_tokens(tokens); in to_tokens()
262 self.mutability.to_tokens(tokens); in to_tokens()
263 self.self_token.to_tokens(tokens); in to_tokens()