api
TokenType.ch
Declarations in TokenType.ch
2 declarationsjs_syntax
Declarations
Public only
JsTokenType#
Publicenum
enum JsTokenType {
Var,
JSXText,
Identifier,
Equal,
Number,
LBrace,
RBrace,
ChemicalStart,
LParen,
RParen,
LBracket,
RBracket,
SemiColon,
String,
Function,
Return,
If,
Else,
Comma,
Colon,
Dot,
Plus,
Minus,
Star,
Slash,
EqualEqual,
StrictEqual,
NotEqual,
StrictNotEqual,
LessThan,
GreaterThan,
LessThanEqual,
GreaterThanEqual,
Exclamation,
Arrow,
Const,
Let,
State,
For,
While,
LogicalAnd,
LogicalOr,
Question,
PlusPlus,
MinusMinus,
Break,
Continue,
Switch,
Case,
Default,
Do,
Try,
Catch,
Finally,
Throw,
TemplateLiteral,
True,
False,
Null,
Undefined,
PlusEqual,
MinusEqual,
StarEqual,
SlashEqual,
Typeof,
Void,
Delete,
In,
InstanceOf,
BitwiseNot,
BitwiseAnd,
BitwiseOr,
BitwiseXor,
LeftShift,
RightShift,
RightShiftUnsigned,
New,
Of,
This,
ThreeDots,
Async,
Await,
Class,
Extends,
Super,
Static,
Import,
Export,
Yield,
Debugger,
Percent,
PercentEqual,
Regex,
NullishCoalescing,
QuestionDot,
Exponent,
EndOfFile
}
Both `js_parser` and `universal_parser` consume this enum. It is the union of
isIdOrKw#
Publicfunction
func isIdOrKw(type : JsTokenType) : bool