js_parser
Types
pub type Token {
StringLiteral(value: String, closed: Bool)
TemplateLiteral(components: List(Token))
EmptyTemplateLiteral
NoSubstitutionTemplate(value: String, closed: Bool)
TemplateHead(value: String)
TemplateMiddle(value: String)
TemplateTail(value: String, closed: Bool)
RegularExpressionLiteral(value: String, closed: Bool)
SingleLineComment(value: String)
MultiLineComment(value: String, closed: Bool)
HashbangComment(value: String)
IdentifierName(value: String)
PrivateIdentifier(value: String)
NumericLiteral(value: String)
WhiteSpace(value: String)
LineTerminatorSequence(value: String)
Invalid
EOF
KeywordAwait
KeywordBreak
KeywordCase
KeywordCatch
KeywordClass
KeywordConst
KeywordContinue
KeywordDebugger
KeywordDefault
KeywordDelete
KeywordDo
KeywordElse
KeywordEnum
KeywordExport
KeywordExtends
KeywordFalse
KeywordFinally
KeywordFor
KeywordFunction
KeywordIf
KeywordImport
KeywordIn
KeywordInstanceof
KeywordNew
KeywordNull
KeywordReturn
KeywordSuper
KeywordSwitch
KeywordThis
KeywordThrow
KeywordTrue
KeywordTry
KeywordTypeof
KeywordVar
KeywordVoid
KeywordWhile
KeywordWith
KeywordYield
CharSemicolon
CharColon
CharComma
CharOpenBracket
CharCloseBracket
CharOpenBrace
CharCloseBrace
CharOpenParen
CharCloseParen
CharWhitespace(value: String)
CharDot
Punctuator(Token)
CharAsterisk
CharMinus
CharPlus
CharEquals
CharMod
CharBackslash
PlusAssign
MinusAssign
StarAssign
DivAssign
ModAssign
ExpAssign
AndAssign
OrAssign
XorAssign
ShlAssign
ShrAssign
UshrAssign
OperatorExp
OperatorIncrement
OperatorDecrement
OperatorAND
OperatorOR
OperatorXOR
OperatorSHL
OperatorSHR
OperatorUSHR
OperatorNOT
OperatorLogicalAND
OperatorLogicalOR
OperatorLogicalNOT
OperatorNULLISH
ComparisonEQL
ComparisonNotEQL
ComparisonStrictEQL
ComparisonStrictNotEQL
LT
GT
LTE
GTE
Arrow
CharQuestion
OperatorOptional
}
Constructors
-
StringLiteral(value: String, closed: Bool)
-
TemplateLiteral(components: List(Token))
-
EmptyTemplateLiteral
-
NoSubstitutionTemplate(value: String, closed: Bool)
-
TemplateHead(value: String)
-
TemplateMiddle(value: String)
-
TemplateTail(value: String, closed: Bool)
-
RegularExpressionLiteral(value: String, closed: Bool)
-
SingleLineComment(value: String)
-
MultiLineComment(value: String, closed: Bool)
-
HashbangComment(value: String)
-
IdentifierName(value: String)
-
PrivateIdentifier(value: String)
-
NumericLiteral(value: String)
-
WhiteSpace(value: String)
-
LineTerminatorSequence(value: String)
-
Invalid
-
EOF
-
KeywordAwait
-
KeywordBreak
-
KeywordCase
-
KeywordCatch
-
KeywordClass
-
KeywordConst
-
KeywordContinue
-
KeywordDebugger
-
KeywordDefault
-
KeywordDelete
-
KeywordDo
-
KeywordElse
-
KeywordEnum
-
KeywordExport
-
KeywordExtends
-
KeywordFalse
-
KeywordFinally
-
KeywordFor
-
KeywordFunction
-
KeywordIf
-
KeywordImport
-
KeywordIn
-
KeywordInstanceof
-
KeywordNew
-
KeywordNull
-
KeywordReturn
-
KeywordSuper
-
KeywordSwitch
-
KeywordThis
-
KeywordThrow
-
KeywordTrue
-
KeywordTry
-
KeywordTypeof
-
KeywordVar
-
KeywordVoid
-
KeywordWhile
-
KeywordWith
-
KeywordYield
-
CharSemicolon
-
CharColon
-
CharComma
-
CharOpenBracket
-
CharCloseBracket
-
CharOpenBrace
-
CharCloseBrace
-
CharOpenParen
-
CharCloseParen
-
CharWhitespace(value: String)
-
CharDot
-
Punctuator(Token)
-
CharAsterisk
-
CharMinus
-
CharPlus
-
CharEquals
-
CharMod
-
CharBackslash
-
PlusAssign
-
MinusAssign
-
StarAssign
-
DivAssign
-
ModAssign
-
ExpAssign
-
AndAssign
-
OrAssign
-
XorAssign
-
ShlAssign
-
ShrAssign
-
UshrAssign
-
OperatorExp
-
OperatorIncrement
-
OperatorDecrement
-
OperatorAND
-
OperatorOR
-
OperatorXOR
-
OperatorSHL
-
OperatorSHR
-
OperatorUSHR
-
OperatorNOT
-
OperatorLogicalAND
-
OperatorLogicalOR
-
OperatorLogicalNOT
-
OperatorNULLISH
-
ComparisonEQL
-
ComparisonNotEQL
-
ComparisonStrictEQL
-
ComparisonStrictNotEQL
-
LT
-
GT
-
LTE
-
GTE
-
Arrow
-
CharQuestion
-
OperatorOptional