mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-29 15:15:23 -07:00
perf: introduce AST to avoid reparse
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Token } from './token'
|
||||
import { ValueToken } from './value-token'
|
||||
import { TokenKind } from '../parser/token-kind'
|
||||
|
||||
export class RangeToken extends Token {
|
||||
constructor (
|
||||
public input: string,
|
||||
public begin: number,
|
||||
public end: number,
|
||||
public lhs: ValueToken,
|
||||
public rhs: ValueToken,
|
||||
public file?: string
|
||||
) {
|
||||
super(TokenKind.Range, input, begin, end, file)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user