Lines Matching full:span
3 use proc_macro::{Delimiter, Group, Ident, Spacing, Span, TokenTree};
5 fn concat_helper(tokens: &[TokenTree]) -> Vec<(String, Span)> { in concat_helper() argument
8 let mut span = None; in concat_helper() localVariable
19 segments.push((value, lit.span())); in concat_helper()
26 segments.push((value, ident.span())); in concat_helper()
35 // Set the overall span of concatenated token as current span in concat_helper()
36 "span" => { in concat_helper()
38 span.is_none(), in concat_helper()
39 "span modifier should only appear at most once" in concat_helper()
41 span = Some(sp); in concat_helper()
60 fn concat(tokens: &[TokenTree], group_span: Span) -> TokenTree { in concat()
70 let span = group.span(); in expand() localVariable
79 *token = concat(&stream[1..stream.len() - 1], span); in expand()
84 group.set_span(span); in expand()