Lines Matching full:span
3 //! A trait that can provide the `Span` of the complete contents of a syntax
28 //! use proc_macro2::Span;
40 //! let assert_sync = quote_spanned! {ty.span()=>
65 //! In this technique, using the `Type`'s span for the error message makes the
72 //! The underlying [`proc_macro::Span::join`] method is nightly-only. When
74 //! use `join` to produce the intended span. When not using a nightly compiler,
75 //! only the span of the *first token* of the syntax tree node is returned.
77 //! In the common case of wanting to use the joined span as the span of a
79 //! able to span the error correctly under the complete syntax tree node without
84 use proc_macro2::Span;
87 /// A trait that can provide the `Span` of the complete contents of a syntax
91 /// [`ToTokens`] from the `quote` crate, as well as for `Span` itself.
99 /// Returns a `Span` covering the complete contents of this syntax tree
100 /// node, or [`Span::call_site()`] if this node is empty.
102 /// [`Span::call_site()`]: proc_macro2::Span::call_site
103 fn span(&self) -> Span; in span() argument
107 fn span(&self) -> Span { in span() argument