pub enum SyntaxErrorType {
Show 18 variants
ExpectedNotFound,
ExpectedSyntax(&'static str),
ForLoopHeaderHasInvalidLhs,
ForLoopHeaderHasMultipleDeclarators,
ForLoopHeaderHasNoLhs,
InvalidAssigmentTarget,
InvalidCharacterEscape,
JsxClosingTagMismatch,
LineTerminatorAfterArrowFunctionParameters,
LineTerminatorAfterThrow,
LineTerminatorAfterYield,
LineTerminatorInRegex,
LineTerminatorInString,
MalformedLiteralBigInt,
MalformedLiteralNumber,
RequiredTokenNotFound(TokenType),
TryStatementHasNoCatchOrFinally,
UnexpectedEnd,
}
Variants§
ExpectedNotFound
ExpectedSyntax(&'static str)
ForLoopHeaderHasInvalidLhs
ForLoopHeaderHasMultipleDeclarators
ForLoopHeaderHasNoLhs
InvalidAssigmentTarget
InvalidCharacterEscape
JsxClosingTagMismatch
LineTerminatorAfterArrowFunctionParameters
LineTerminatorAfterThrow
LineTerminatorAfterYield
LineTerminatorInRegex
LineTerminatorInString
MalformedLiteralBigInt
MalformedLiteralNumber
RequiredTokenNotFound(TokenType)
TryStatementHasNoCatchOrFinally
UnexpectedEnd
Trait Implementations§
Source§impl Clone for SyntaxErrorType
impl Clone for SyntaxErrorType
Source§fn clone(&self) -> SyntaxErrorType
fn clone(&self) -> SyntaxErrorType
Returns a duplicate 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 SyntaxErrorType
impl Debug for SyntaxErrorType
Source§impl PartialEq for SyntaxErrorType
impl PartialEq for SyntaxErrorType
impl Copy for SyntaxErrorType
impl Eq for SyntaxErrorType
impl StructuralPartialEq for SyntaxErrorType
Auto Trait Implementations§
impl Freeze for SyntaxErrorType
impl RefUnwindSafe for SyntaxErrorType
impl Send for SyntaxErrorType
impl Sync for SyntaxErrorType
impl Unpin for SyntaxErrorType
impl UnwindSafe for SyntaxErrorType
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