pub enum ParseErrors<'a> {
Show 28 variants
UnexpectedToken {
expected: &'a [TSXToken],
found: TSXToken,
},
UnexpectedSymbol(InvalidCharacter),
ClosingTagDoesNotMatch {
expected: &'a str,
found: &'a str,
},
ExpectedStringLiteral {
found: TSXToken,
},
TypeArgumentsNotValidOnReference,
UnmatchedBrackets,
FunctionParameterOptionalAndDefaultValue,
ExpectedIdent {
found: TSXToken,
at_location: &'a str,
},
ParameterCannotHaveDefaultValueHere,
InvalidLHSAssignment,
LexingFailed,
ExpectedCatchOrFinally,
InvalidDeclareItem(&'static str),
DestructuringRequiresValue,
CannotAccessObjectLiteralDirectly,
TrailingCommaNotAllowedHere,
InvalidNumberLiteral,
ReservedIdentifier,
AwaitRequiresForOf,
CannotUseLeadingParameterHere,
ExpectedIdentifier,
ExpectedNumberLiteral,
NonStandardSyntaxUsedWithoutEnabled,
ExpectRule,
InvalidRegexFlag,
ExpectedDeclaration,
CannotHaveRegularMemberAfterSpread,
InvalidLHSOfIs,
}
Variants§
UnexpectedToken
UnexpectedSymbol(InvalidCharacter)
ClosingTagDoesNotMatch
ExpectedStringLiteral
TypeArgumentsNotValidOnReference
UnmatchedBrackets
FunctionParameterOptionalAndDefaultValue
ExpectedIdent
ParameterCannotHaveDefaultValueHere
InvalidLHSAssignment
LexingFailed
ExpectedCatchOrFinally
InvalidDeclareItem(&'static str)
DestructuringRequiresValue
CannotAccessObjectLiteralDirectly
TrailingCommaNotAllowedHere
InvalidNumberLiteral
ReservedIdentifier
AwaitRequiresForOf
CannotUseLeadingParameterHere
ExpectedIdentifier
ExpectedNumberLiteral
NonStandardSyntaxUsedWithoutEnabled
ExpectRule
InvalidRegexFlag
ExpectedDeclaration
CannotHaveRegularMemberAfterSpread
InvalidLHSOfIs
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ParseErrors<'a>
impl<'a> RefUnwindSafe for ParseErrors<'a>
impl<'a> Send for ParseErrors<'a>
impl<'a> Sync for ParseErrors<'a>
impl<'a> Unpin for ParseErrors<'a>
impl<'a> UnwindSafe for ParseErrors<'a>
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