stringLiteral.js 256 B

1234567891011121314
  1. import { Literal } from './literal';
  2. import { Types } from './../../typeSystem/types';
  3. export class StringLiteral extends Literal {
  4. constructor(value) {
  5. super(Types.STRING);
  6. this.value = value;
  7. }
  8. toString() {
  9. return this.value;
  10. }
  11. }