Lines Matching refs:span
39 /// The [`Span`] of the first `Ident` argument is used as the span of the final
46 /// // If `ident` is an Ident, the span of `my_ident` will be inherited from it.
51 /// Alternatively, the span can be overridden by passing the `span` named
60 /// format_ident!("MyIdent", span = my_span);
131 ([$span:expr, $($fmt:tt)*]) => {
134 $span,
139 ([$old:expr, $($fmt:tt)*] span = $span:expr) => {
140 $crate::format_ident_impl!([$old, $($fmt)*] span = $span,)
142 ([$old:expr, $($fmt:tt)*] span = $span:expr, $($rest:tt)*) => {
144 $crate::__private::Option::Some::<$crate::__private::Span>($span),
150 ([$span:expr, $($fmt:tt)*] $name:ident = $arg:expr) => {
151 $crate::format_ident_impl!([$span, $($fmt)*] $name = $arg,)
153 ([$span:expr, $($fmt:tt)*] $name:ident = $arg:expr, $($rest:tt)*) => {
155 arg => $crate::format_ident_impl!([$span.or(arg.span()), $($fmt)*, $name = arg] $($rest)*),
160 ([$span:expr, $($fmt:tt)*] $arg:expr) => {
161 $crate::format_ident_impl!([$span, $($fmt)*] $arg,)
163 ([$span:expr, $($fmt:tt)*] $arg:expr, $($rest:tt)*) => {
165 arg => $crate::format_ident_impl!([$span.or(arg.span()), $($fmt)*, arg] $($rest)*),