just
Types
pub type Error {
UnknownCharacter(character: String)
UnterminatedString
UnterminatedComment
UnterminatedRegularExpression
UnterminatedTemplate
LetterAfterNumber
NumericSeparatorNotAllowed
ExpectedExponent
InvalidPrivateIdentifier(identifier: String)
ZeroPrefixedNumberInStrictMode
}
Constructors
-
UnknownCharacter(character: String)
-
UnterminatedString
-
UnterminatedComment
-
UnterminatedRegularExpression
-
UnterminatedTemplate
-
LetterAfterNumber
-
NumericSeparatorNotAllowed
-
ExpectedExponent
-
InvalidPrivateIdentifier(identifier: String)
-
ZeroPrefixedNumberInStrictMode
Functions
pub fn ignore_comments(lexer: Lexer) -> Lexer
pub fn ignore_whitespace(lexer: Lexer) -> Lexer
pub fn strict_mode(lexer: Lexer) -> Lexer
pub fn stringify_error(error: Error) -> String