blob: f2dbc4056ebea1ff3c00dbbe440257c9c070af77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// SPDX-License-Identifier: Apache-2.0 OR MIT
// The subset of Span's API stabilized in Rust 1.88.
extern crate proc_macro;
use proc_macro::Span;
use std::path::PathBuf;
pub fn file(this: &Span) -> String {
this.file()
}
pub fn local_file(this: &Span) -> Option<PathBuf> {
this.local_file()
}
|