Lines Matching full:span
3 // This code exercises the surface area that we expect of Span's unstable API.
12 use proc_macro::{Literal, Span};
15 pub fn byte_range(this: &Span) -> Range<usize> { in byte_range()
19 pub fn start(this: &Span) -> Span { in start() argument
23 pub fn end(this: &Span) -> Span { in end() argument
27 pub fn line(this: &Span) -> usize { in line()
31 pub fn column(this: &Span) -> usize { in column()
35 pub fn file(this: &Span) -> String { in file()
39 pub fn local_file(this: &Span) -> Option<PathBuf> { in local_file()
43 pub fn join(this: &Span, other: Span) -> Option<Span> { in join() argument
47 pub fn subspan<R: RangeBounds<usize>>(this: &Literal, range: R) -> Option<Span> { in subspan() argument