Lines Matching full:tokens
5 fn concat(tokens: &[TokenTree], group_span: Span) -> TokenTree { in concat()
6 let mut tokens = tokens.iter(); in concat() localVariable
10 match tokens.next() { in concat()
29 let Some(TokenTree::Ident(ident)) = tokens.next() else { in concat()
57 pub(crate) fn expand(tokens: &mut Vec<TokenTree>) { in expand()
58 for token in tokens.iter_mut() { in expand()
72 // Recursively expand tokens inside the group in expand()
82 for i in (0..tokens.len().saturating_sub(3)).rev() { in expand()
85 (&tokens[i + 1], &tokens[i + 2]), in expand()
89 match &tokens[i + 3] { in expand()
91 tokens.splice(i + 3..i + 4, group.stream()); in expand()
96 match &tokens[i] { in expand()
98 tokens.splice(i..i + 1, group.stream()); in expand()