12345678910111213141516171819 |
- import { Literal } from './literal';
- import { Types } from './../../typeSystem/types';
- export class StringLiteral extends Literal {
-
- constructor(value) {
- super(Types.STRING);
- this.value = value;
- }
- toString() {
- const text = '"' + this.value + '"';
- if(this.parenthesis) {
- return `(${text})`;
- } else {
- return text;
- }
- }
- }
|