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