mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
13 lines
338 B
TypeScript
13 lines
338 B
TypeScript
import Token from './token'
|
|
|
|
export default class HTMLToken extends Token {
|
|
constructor (str: string, input: string, line: number, col: number, file?: string) {
|
|
super(str, input, line, col, file)
|
|
this.type = 'html'
|
|
this.value = str
|
|
}
|
|
static is (token: Token): token is HTMLToken {
|
|
return token.type === 'html'
|
|
}
|
|
}
|