Struct deno_ast::Diagnostic [−][src]
pub struct Diagnostic {
pub specifier: String,
pub span: Span,
pub display_position: LineAndColumnDisplay,
pub kind: SyntaxError,
}
Expand description
Parsing diagnostic.
Fields
specifier: String
Specifier of the source the diagnostic occurred in.
span: Span
Range of the diagnostic.
display_position: LineAndColumnDisplay
1-indexed display position the diagnostic occurred at.
kind: SyntaxError
Swc syntax error
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnwindSafe for Diagnostic
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more