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
sourceimpl Clone for SyntaxErrorType
impl Clone for SyntaxErrorType
sourcefn clone(&self) -> SyntaxErrorType
fn clone(&self) -> SyntaxErrorType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SyntaxErrorType
impl Debug for SyntaxErrorType
sourceimpl PartialEq<SyntaxErrorType> for SyntaxErrorType
impl PartialEq<SyntaxErrorType> for SyntaxErrorType
sourcefn eq(&self, other: &SyntaxErrorType) -> bool
fn eq(&self, other: &SyntaxErrorType) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more