pub struct LexedFile {
pub language: Language,
pub frontend_version: &'static str,
pub tokens: Vec<Token>,
pub units: Vec<Unit>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of lexing one source file.
Fields§
§language: LanguageLanguage the file was lexed as.
frontend_version: &'static strVersion tag of the frontend that produced this result; a fingerprint input, so a change to lexing that alters output must change it.
tokens: Vec<Token>Tokens in source order, comments and whitespace removed.
units: Vec<Unit>Coarse unit boundaries, in source order.
diagnostics: Vec<Diagnostic>Recoverable problems encountered while lexing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LexedFile
impl RefUnwindSafe for LexedFile
impl Send for LexedFile
impl Sync for LexedFile
impl Unpin for LexedFile
impl UnsafeUnpin for LexedFile
impl UnwindSafe for LexedFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more