proc_macro
Version:
A JavaScript implementation of proc_macros.
16 lines • 483 B
TypeScript
import Token from './token';
declare type LiteralType = 'string' | 'number' | 'none';
/**
* A value (string, number).
*/
export default class Literal extends Token {
readonly value: string;
readonly type: LiteralType;
constructor(value: string, type: LiteralType);
eq(other: any): boolean;
static tokenize(token_string: string): [Literal, string];
toParenthesisString(): string;
toJavaScript(): string;
}
export {};
//# sourceMappingURL=literal.d.ts.map