UNPKG

ts-fusion-parser

Version:

Parser for Neos Fusion Files

16 lines (15 loc) 519 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextNode = void 0; const AbstractNode_1 = require("../../../common/AbstractNode"); class TextNode extends AbstractNode_1.AbstractNode { constructor(position, text, parent = undefined) { super(position, parent); this.text = text; } toString(intend = 0) { const strIntend = " ".repeat(intend); return this.text.trim().replace(/\n/g, "\n" + strIntend); } } exports.TextNode = TextNode;