Enum parse_js::error::SyntaxErrorType
source · pub enum SyntaxErrorType {
Show 17 variants
ExpectedNotFound,
ExpectedSyntax(&'static str),
ForLoopHeaderHasInvalidLhs,
ForLoopHeaderHasMultipleDeclarators,
ForLoopHeaderHasNoLhs,
InvalidAssigmentTarget,
InvalidCharacterEscape,
LineTerminatorAfterArrowFunctionParameters,
LineTerminatorAfterThrow,
LineTerminatorAfterYield,
LineTerminatorInRegex,
LineTerminatorInString,
MalformedLiteralNumber,
JsxClosingTagMismatch,
RequiredTokenNotFound(TokenType),
TryStatementHasNoCatchOrFinally,
UnexpectedEnd,
}
Variants§
ExpectedNotFound
ExpectedSyntax(&'static str)
ForLoopHeaderHasInvalidLhs
ForLoopHeaderHasMultipleDeclarators
ForLoopHeaderHasNoLhs
InvalidAssigmentTarget
InvalidCharacterEscape
LineTerminatorAfterArrowFunctionParameters
LineTerminatorAfterThrow
LineTerminatorAfterYield
LineTerminatorInRegex
LineTerminatorInString
MalformedLiteralNumber
JsxClosingTagMismatch
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 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 SyntaxErrorType
impl Debug for SyntaxErrorType
source§impl PartialEq for SyntaxErrorType
impl PartialEq for SyntaxErrorType
source§fn eq(&self, other: &SyntaxErrorType) -> bool
fn eq(&self, other: &SyntaxErrorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SyntaxErrorType
impl Eq for SyntaxErrorType
impl StructuralEq for SyntaxErrorType
impl StructuralPartialEq for SyntaxErrorType
Auto Trait Implementations§
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