Home
last modified time | relevance | path

Searched refs:set_span (Results 1 – 25 of 40) sorted by relevance

12

/external/rust/crates/syn/src/
Dlit.rs123 token.set_span(span); in new()
218 g.set_span(span); in parse_with()
220 other => other.set_span(span), in parse_with()
237 pub fn set_span(&mut self, span: Span) { in set_span() method
238 self.repr.token.set_span(span); in set_span()
253 token.set_span(span); in new()
272 pub fn set_span(&mut self, span: Span) { in set_span() method
273 self.repr.token.set_span(span); in set_span()
288 token.set_span(span); in new()
307 pub fn set_span(&mut self, span: Span) { in set_span() method
[all …]
Dlifetime.rs67 pub fn set_span(&mut self, span: Span) { in set_span() method
69 self.ident.set_span(span); in set_span()
149 apostrophe.set_span(self.apostrophe); in to_tokens()
Derror.rs269 punct.set_span(start); in to_compile_error()
276 string.set_span(end); in to_compile_error()
280 group.set_span(end); in to_compile_error()
Dmac.rs45 group.set_span(match macro_delimiter { in delimiter_span_close()
Dtoken.rs983 op.set_span(*span); in punct()
988 op.set_span(*span); in punct()
1010 g.set_span(span); in delim()
/external/rust/crates/quote/src/
Druntime.rs178 g.set_span(span); in push_group_spanned()
202 g.set_span(span); in respan_token_tree()
204 other => other.set_span(span), in respan_token_tree()
263 apostrophe.set_span(self.span); in push_lifetime_spanned()
289 punct.set_span(span);
300 punct.set_span(span);
303 punct.set_span(span);
315 punct.set_span(span);
318 punct.set_span(span);
321 punct.set_span(span);
/external/rust/crates/paste/src/
Derror.rs31 punct.set_span(self.begin); in to_compile_error()
38 string.set_span(self.end); in to_compile_error()
42 group.set_span(self.end); in to_compile_error()
Dattr.rs92 group.set_span(span); in expand_attr()
138 lit.set_span(span); in do_paste_name_value_attr()
Dlib.rs250 group.set_span(span); in expand()
436 apostrophe.set_span(span); in pasted_to_tokens()
/external/rust/crates/rustversion/src/
Derror.rs40 punct.set_span(self.begin); in into_compile_error()
47 string.set_span(self.end); in into_compile_error()
51 group.set_span(self.end); in into_compile_error()
/external/rust/crates/proc-macro2/src/
Dlib.rs581 pub fn set_span(&mut self, span: Span) { in set_span() method
583 TokenTree::Group(t) => t.set_span(span), in set_span()
584 TokenTree::Ident(t) => t.set_span(span), in set_span()
585 TokenTree::Punct(t) => t.set_span(span), in set_span()
586 TokenTree::Literal(t) => t.set_span(span), in set_span()
757 pub fn set_span(&mut self, span: Span) { in set_span() method
758 self.inner.set_span(span.inner); in set_span()
837 pub fn set_span(&mut self, span: Span) { in set_span() method
993 pub fn set_span(&mut self, span: Span) { in set_span() method
994 self.inner.set_span(span.inner); in set_span()
[all …]
Dwrapper.rs164 punct.set_span(tt.span().inner.unwrap_nightly()); in into_compiler_token()
339 o.set_span(crate::Span::_new(Span::Compiler(tt.span()))); in next()
651 pub fn set_span(&mut self, span: Span) { in set_span() method
653 (Group::Compiler(g), Span::Compiler(s)) => g.set_span(s), in set_span()
654 (Group::Fallback(g), Span::Fallback(s)) => g.set_span(s), in set_span()
722 id.set_span(s); in new_raw()
739 pub fn set_span(&mut self, span: Span) { in set_span() method
741 (Ident::Compiler(t), Span::Compiler(s)) => t.set_span(s), in set_span()
742 (Ident::Fallback(t), Span::Fallback(s)) => t.set_span(s), in set_span()
915 pub fn set_span(&mut self, span: Span) { in set_span() method
[all …]
Dparse.rs213 g.set_span(Span { in token_stream()
226 tt.set_span(crate::Span::_new_fallback(Span { in token_stream()
815 pound.set_span(span); in doc_comment()
820 bang.set_span(span); in doc_comment()
826 equal.set_span(span); in doc_comment()
828 literal.set_span(span); in doc_comment()
835 group.set_span(span); in doc_comment()
Dfallback.rs105 punct.set_span(crate::Span::_new_fallback(literal.span)); in push_token_from_proc_macro()
702 pub fn set_span(&mut self, span: Span) { in set_span() method
774 pub fn set_span(&mut self, span: Span) { in set_span() method
1011 pub fn set_span(&mut self, span: Span) { in set_span() function
/external/rust/crates/thiserror-impl/src/
Dattr.rs169 group.set_span(delimiter.span); in parse_token_expr()
176 group.set_span(delimiter.span); in parse_token_expr()
183 group.set_span(delimiter.span); in parse_token_expr()
Dfmt.rs62 ident.set_span(span); in expand_shorthand()
/external/rust/crates/async-trait/src/
Dreceiver.rs97 ident.set_span(self.0); in prepend_underscore_to_self()
127 new.set_span(group.span()); in visit_token_stream()
/external/rust/crates/serde_derive/src/internals/
Drespan.rs14 token.set_span(span); in respan_token()
/external/rust/crates/litrs/src/
Derr.rs36 tokens.into_iter().map(|mut t| { t.set_span(span); t }).collect() in to_compile_error()
61 tokens.into_iter().map(|mut t| { t.set_span(span); t }).collect() in to_compile_error2()
/external/rust/crates/document-features/
Dlib.rs180 punct.set_span(span); in compile_error()
187 string.set_span(span); in compile_error()
191 group.set_span(span); in compile_error()
/external/rust/crates/clap_derive/src/utils/
Dspanned.rs83 tt.set_span(self.span); in to_tokens()
/external/rust/crates/async-stream-impl/src/
Dlib.rs91 new.set_span(group.span()); in visit_token_stream_impl()
294 new_group.set_span(group.span()); in replace_for_await()
/external/rust/crates/proc-macro-error-attr/src/
Dlib.rs31 message.set_span(self.span); in into_compile_error()
/external/rust/crates/pin-project-internal/src/
Dutils.rs127 token.set_span(span); in respan_tokens()
290 new.set_span(group.span()); in visit_token_stream()
/external/rust/crates/proc-macro-error/src/
Ddiagnostic.rs256 msg.set_span(span_range.last); in to_tokens()

12