pub enum TypeCheckWarning {
Show 13 variants
AwaitUsedOnNonPromise(SpanWithSource),
DeadBranch {
expression_span: SpanWithSource,
expression_value: bool,
},
ExcessProperty {
position: SpanWithSource,
expected_type: TypeStringRepresentation,
excess_property_name: String,
},
IgnoringAsExpression(SpanWithSource),
Unimplemented {
item: &'static str,
position: SpanWithSource,
},
UselessExpression {
expression_span: SpanWithSource,
},
MergingInterfaceInSameContext {
position: SpanWithSource,
},
TypesDoNotIntersect {
left: TypeStringRepresentation,
right: TypeStringRepresentation,
position: SpanWithSource,
},
InvalidOrUnimplementedDefinitionFileItem(SpanWithSource),
ConditionalExceptionInvoked {
value: TypeStringRepresentation,
call_site: SpanWithSource,
},
Unreachable(SpanWithSource),
DisjointEquality {
lhs: TypeStringRepresentation,
rhs: TypeStringRepresentation,
result: bool,
position: SpanWithSource,
},
ItemMustBeUsedWithFlag {
item: &'static str,
position: SpanWithSource,
},
}Variants§
AwaitUsedOnNonPromise(SpanWithSource)
DeadBranch
TODO could be an error at some point
ExcessProperty
IgnoringAsExpression(SpanWithSource)
Unimplemented
UselessExpression
Fields
§
expression_span: SpanWithSourceMergingInterfaceInSameContext
Fields
§
position: SpanWithSourceTypesDoNotIntersect
InvalidOrUnimplementedDefinitionFileItem(SpanWithSource)
ConditionalExceptionInvoked
TODO WIP
Unreachable(SpanWithSource)
DisjointEquality
Fields
§
position: SpanWithSourceItemMustBeUsedWithFlag
Trait Implementations§
Source§impl From<TypeCheckWarning> for Diagnostic
impl From<TypeCheckWarning> for Diagnostic
Source§fn from(warning: TypeCheckWarning) -> Self
fn from(warning: TypeCheckWarning) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypeCheckWarning
impl RefUnwindSafe for TypeCheckWarning
impl Send for TypeCheckWarning
impl Sync for TypeCheckWarning
impl Unpin for TypeCheckWarning
impl UnsafeUnpin for TypeCheckWarning
impl UnwindSafe for TypeCheckWarning
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more