UNPKG

ts-fusion-parser

Version:

Parser for Neos Fusion Files

17 lines (16 loc) 639 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LiteralStringNode = void 0; const AbstractLiteralNode_1 = require("./AbstractLiteralNode"); class LiteralStringNode extends AbstractLiteralNode_1.AbstractLiteralNode { constructor(value, position, parent = undefined) { const quotationType = value[0]; value = value.substring(1, value.length - 1); super(value, position, parent); this.quotationType = quotationType; } toString(intend) { return this.quotationType + this.value + this.quotationType; } } exports.LiteralStringNode = LiteralStringNode;