pub enum Error {
UnexpectedToken(Token),
FailedASI(Token),
LexError(Error),
TopLevelReturn(Span),
IllegalBreak(Token),
IllegalContinue(Token),
InvalidLabel(Id),
InvalidLabelType(Id),
ContextualKeyword(Id),
IllegalStrictBinding(Id),
ForOfLetExpr(Span),
DuplicateDefault(Token),
StrictWith(Token),
ThrowArgument(Token),
OrphanTry(Token),
InvalidLHS(Option<Span>, Error),
UnsupportedFeature(&'static str),
}
Variants
UnexpectedToken(Token)
FailedASI(Token)
LexError(Error)
TopLevelReturn(Span)
IllegalBreak(Token)
IllegalContinue(Token)
InvalidLabel(Id)
InvalidLabelType(Id)
ContextualKeyword(Id)
IllegalStrictBinding(Id)
ForOfLetExpr(Span)
DuplicateDefault(Token)
StrictWith(Token)
ThrowArgument(Token)
OrphanTry(Token)
InvalidLHS(Option<Span>, Error)
UnsupportedFeature(&'static str)
Trait Implementations
Formats the value using the given formatter.
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.