Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
import CodeSpan from "./CodeSpan";
import Token from "./Token";
import TokenType from "./TokenType";
/**
* This represents a token which contains a literal value (e.g. string literal, number literal and identifiers.).
*/
export default class LiteralToken<ValueT> extends Token {
constructor(
type: TokenType,
span: CodeSpan,
lexeme: string,
public value: ValueT
) {
super(type, span, lexeme);
}
}
2d56448eaThis file is pinned to the selected release. Download the original to open it in your design tool.