perf: remove instanceof DelimitedToken

This commit is contained in:
harttle
2020-03-15 02:51:25 +08:00
committed by Jun Yang
parent d2d6a38235
commit 1673e84e27
3 changed files with 20 additions and 15 deletions
+13 -12
View File
@@ -1,14 +1,15 @@
export enum TokenKind {
Number,
Literal,
Tag,
Output,
HTML,
Filter,
Hash,
PropertyAccess,
Word,
Range,
Quoted,
Operator
Number = 1,
Literal = 2,
Tag = 4,
Output = 8,
HTML = 16,
Filter = 32,
Hash = 64,
PropertyAccess = 128,
Word = 256,
Range = 512,
Quoted = 1024,
Operator = 2048,
Delimited = Tag | Output
}