proc_macro2/probe/proc_macro_span_location.rs
1// The subset of Span's API stabilized in Rust 1.88.
2
3extern crate proc_macro;
4
5use proc_macro::Span;
6
7pub fn start(this: &Span) -> Span {
8 this.start()
9}
10
11pub fn end(this: &Span) -> Span {
12 this.end()
13}
14
15pub fn line(this: &Span) -> usize {
16 this.line()
17}
18
19pub fn column(this: &Span) -> usize {
20 this.column()
21}