1// The subset of Span's API stabilized in Rust 1.88. 2 3extern crate proc_macro; 4 5use proc_macro::Span; 6use std::path::PathBuf; 7 8pub fn file(this: &Span) -> String { 9 this.file() 10} 11 12pub fn local_file(this: &Span) -> Option<PathBuf> { 13 this.local_file() 14}