Enum js::syntax::parser::ParseError[][src]

pub enum ParseError {
    Expected(Vec<TokenData>, Token, &'static str),
    ExpectedExpr(&'static strExpr),
    UnexpectedKeyword(Keyword),
    AbruptEnd,
}

An error encounted during parsing an expression

Variants

When it expected a certain kind of token, but got another as part of something

When it expected a certain expression, but got another

When it didn't expect this keyword

When there is an abrupt end to the parsing

Auto Trait Implementations

impl Send for ParseError

impl Sync for ParseError