Enum parse_js::error::SyntaxErrorType
source · pub enum SyntaxErrorType {
Show 16 variants
ExpectedNotFound,
ExpectedSyntax(&'static str),
ForLoopHeaderHasInvalidLhs,
ForLoopHeaderHasMultipleDeclarators,
ForLoopHeaderHasNoLhs,
InvalidAssigmentTarget,
LineTerminatorAfterArrowFunctionParameters,
LineTerminatorAfterThrow,
LineTerminatorAfterYield,
LineTerminatorInRegex,
LineTerminatorInString,
MalformedLiteralNumber,
JsxClosingTagMismatch,
RequiredTokenNotFound(TokenType),
TryStatementHasNoCatchOrFinally,
UnexpectedEnd,
}
Variants§
ExpectedNotFound
ExpectedSyntax(&'static str)
ForLoopHeaderHasInvalidLhs
ForLoopHeaderHasMultipleDeclarators
ForLoopHeaderHasNoLhs
InvalidAssigmentTarget
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<SyntaxErrorType> for SyntaxErrorType
impl PartialEq<SyntaxErrorType> 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 ==
.