12345678910111213141516171819202122 |
- import { Literal } from "./literal";
- import { Types } from "./../../typeSystem/types";
- export class VariableLiteral extends Literal {
- constructor (id) {
- super(Types.UNDEFINED);
- this.id = id;
- }
- get value () {
- return this.id;
- }
- toString () {
- if (this.parenthesis) {
- return `(${this.id})`;
- } else {
- return this.id;
- }
- }
- }
|