Lines Matching refs:tokens

270         let (delimiter, tokens) = mac::parse_delimiter(input)?;  in stmt_mac()
279 tokens, in stmt_mac()
428 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
429 self.brace_token.surround(tokens, |tokens| { in to_tokens()
430 tokens.append_all(&self.stmts); in to_tokens()
437 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
439 Stmt::Local(local) => local.to_tokens(tokens), in to_tokens()
440 Stmt::Item(item) => item.to_tokens(tokens), in to_tokens()
442 expr::printing::print_expr(expr, tokens, FixupContext::new_stmt()); in to_tokens()
443 semi.to_tokens(tokens); in to_tokens()
445 Stmt::Macro(mac) => mac.to_tokens(tokens), in to_tokens()
452 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
453 expr::printing::outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
454 self.let_token.to_tokens(tokens); in to_tokens()
455 self.pat.to_tokens(tokens); in to_tokens()
457 init.eq_token.to_tokens(tokens); in to_tokens()
461 tokens, in to_tokens()
465 else_token.to_tokens(tokens); in to_tokens()
467 Expr::Block(diverge) => diverge.to_tokens(tokens), in to_tokens()
468 _ => token::Brace::default().surround(tokens, |tokens| { in to_tokens()
469 expr::printing::print_expr(diverge, tokens, FixupContext::new_stmt()); in to_tokens()
474 self.semi_token.to_tokens(tokens); in to_tokens()
480 fn to_tokens(&self, tokens: &mut TokenStream) { in to_tokens()
481 expr::printing::outer_attrs_to_tokens(&self.attrs, tokens); in to_tokens()
482 self.mac.to_tokens(tokens); in to_tokens()
483 self.semi_token.to_tokens(tokens); in to_tokens()