Enum deno_graph::FastCheckDiagnostic
source · pub enum FastCheckDiagnostic {
Show 18 variants
NotFoundReference {
range: DiagnosticRange,
name: String,
referrer: String,
},
MissingExplicitType {
range: DiagnosticRange,
},
MissingExplicitReturnType {
range: DiagnosticRange,
},
UnsupportedAmbientModule {
range: DiagnosticRange,
},
UnsupportedComplexReference {
range: DiagnosticRange,
name: String,
referrer: String,
},
UnsupportedDefaultExportExpr {
range: DiagnosticRange,
},
UnsupportedDestructuring {
range: DiagnosticRange,
},
UnsupportedGlobalModule {
range: DiagnosticRange,
},
UnsupportedRequire {
range: DiagnosticRange,
},
UnsupportedPrivateMemberReference {
range: DiagnosticRange,
name: String,
referrer: String,
},
UnsupportedSuperClassExpr {
range: DiagnosticRange,
},
UnsupportedTsExportAssignment {
range: DiagnosticRange,
},
UnsupportedTsNamespaceExport {
range: DiagnosticRange,
},
UnsupportedUsing {
range: DiagnosticRange,
},
UnsupportedNestedJavaScript {
specifier: ModuleSpecifier,
},
UnsupportedJavaScriptEntrypoint {
specifier: ModuleSpecifier,
},
Emit {
specifier: ModuleSpecifier,
inner: Arc<Error>,
},
Multiple(Vec<FastCheckDiagnostic>),
}
Variants§
NotFoundReference
MissingExplicitType
Fields
§
range: DiagnosticRange
MissingExplicitReturnType
Fields
§
range: DiagnosticRange
UnsupportedAmbientModule
Fields
§
range: DiagnosticRange
UnsupportedComplexReference
UnsupportedDefaultExportExpr
Fields
§
range: DiagnosticRange
UnsupportedDestructuring
Fields
§
range: DiagnosticRange
UnsupportedGlobalModule
Fields
§
range: DiagnosticRange
UnsupportedRequire
Fields
§
range: DiagnosticRange
UnsupportedPrivateMemberReference
UnsupportedSuperClassExpr
Fields
§
range: DiagnosticRange
UnsupportedTsExportAssignment
Fields
§
range: DiagnosticRange
UnsupportedTsNamespaceExport
Fields
§
range: DiagnosticRange
UnsupportedUsing
Fields
§
range: DiagnosticRange
UnsupportedNestedJavaScript
Fields
§
specifier: ModuleSpecifier
UnsupportedJavaScriptEntrypoint
Fields
§
specifier: ModuleSpecifier
Emit
Multiple(Vec<FastCheckDiagnostic>)
Implementations§
source§impl FastCheckDiagnostic
impl FastCheckDiagnostic
pub fn code(&self) -> &'static str
sourcepub fn range_description(&self) -> Option<&'static str>
pub fn range_description(&self) -> Option<&'static str>
Return a human readable description of what the range of the diagnostic is.
Panics if the diagnostic does not have a range.
pub fn fix_hint(&self) -> &'static str
pub fn additional_info(&self) -> &[&'static str]
source§impl FastCheckDiagnostic
impl FastCheckDiagnostic
pub fn flatten_multiple<'a>( &'a self ) -> Box<dyn Iterator<Item = &FastCheckDiagnostic> + 'a>
pub fn from_vec(diagnostics: Vec<FastCheckDiagnostic>) -> Option<Self>
pub fn specifier(&self) -> &ModuleSpecifier
pub fn range(&self) -> Option<&DiagnosticRange>
pub fn message_with_range_for_test(&self) -> String
Trait Implementations§
source§impl Clone for FastCheckDiagnostic
impl Clone for FastCheckDiagnostic
source§fn clone(&self) -> FastCheckDiagnostic
fn clone(&self) -> FastCheckDiagnostic
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FastCheckDiagnostic
impl Debug for FastCheckDiagnostic
source§impl Display for FastCheckDiagnostic
impl Display for FastCheckDiagnostic
source§impl Error for FastCheckDiagnostic
impl Error for FastCheckDiagnostic
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl RefUnwindSafe for FastCheckDiagnostic
impl Send for FastCheckDiagnostic
impl Sync for FastCheckDiagnostic
impl Unpin for FastCheckDiagnostic
impl UnwindSafe for FastCheckDiagnostic
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