Home
last modified time | relevance | path

Searched refs:span (Results 1 – 4 of 4) sorted by relevance

/rust/macros/
Dquote.rs42 ($span:expr => $($tt:tt)*) => {{
47 let span = $span; localVariable
48 quote_spanned!(@proc tokens span $($tt)*);
52 (@proc $v:ident $span:ident) => {};
53 (@proc $v:ident $span:ident #$id:ident $($tt:tt)*) => {
57 quote_spanned!(@proc $v $span $($tt)*);
59 (@proc $v:ident $span:ident #(#$id:ident)* $($tt:tt)*) => {
65 quote_spanned!(@proc $v $span $($tt)*);
67 (@proc $v:ident $span:ident ( $($inner:tt)* ) $($tt:tt)*) => {
69 quote_spanned!(@proc tokens $span $($inner)*);
[all …]
Dpaste.rs8 let mut span = None; in concat() localVariable
19 segments.push((value, lit.span())); in concat()
26 segments.push((value, ident.span())); in concat()
38 span.is_none(), in concat()
41 span = Some(sp); in concat()
54 TokenTree::Ident(Ident::new(&pasted, span.unwrap_or(group_span))) in concat()
61 let span = group.span(); in expand() localVariable
70 *token = concat(&stream[1..stream.len() - 1], span); in expand()
75 group.set_span(span); in expand()
Dconcat_idents.rs21 let res = Ident::new(&format!("{a}{b}"), b.span()); in concat_idents()
Dpin_data.rs113 tok.set_span(tt.span()); in replace_self_and_deny_type_defs()