Lines Matching refs: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()
21 let Some(TokenTree::Ident(ident)) = tokens.next() else { in concat()
49 pub(crate) fn expand(tokens: &mut Vec<TokenTree>) { in expand()
50 for token in tokens.iter_mut() { in expand()
74 for i in (0..tokens.len().saturating_sub(3)).rev() { in expand()
77 (&tokens[i + 1], &tokens[i + 2]), in expand()
81 match &tokens[i + 3] { in expand()
83 tokens.splice(i + 3..i + 4, group.stream()); in expand()
88 match &tokens[i] { in expand()
90 tokens.splice(i..i + 1, group.stream()); in expand()