Struct rslint_core::File [−][src]
pub struct File {
pub source: String,
pub name: String,
pub path: Option<PathBuf>,
pub id: usize,
pub kind: FileKind,
pub line_starts: Vec<usize>,
}
Expand description
A structure representing either a concrete (in-disk) or virtual (temporary/non-disk) js, ts, or mjs file.
Fields
source: String
name: String
The name of the file.
path: Option<PathBuf>
The path in disk if this is a concrete file.
id: usize
The rslint_errors id assigned to this file used to refer back to it.
kind: FileKind
The kind of file this is.
line_starts: Vec<usize>
The cached line start locations in this file.
Implementations
Parse this file into a syntax node, ignoring any errors produced. This
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for File
impl UnwindSafe for File
Blanket Implementations
Mutably borrows from an owned value. Read more
Whether this implementor has acknowledged the 1.1.0 update to
unerase
’s documented implementation requirements. Read more