UNPKG

ts-fusion-parser

Version:

Parser for Neos Fusion Files

20 lines (19 loc) 812 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ObjectPathNode = void 0; const AbstractNode_1 = require("../../../common/AbstractNode"); const AbstractValueNode_1 = require("./AbstractValueNode"); class ObjectPathNode extends AbstractValueNode_1.AbstractValueNode { constructor(value, position, parent, offset = undefined) { super(value, position, parent); this.incomplete = false; this.offset = offset; if (this.offset) AbstractNode_1.AbstractNode.setParentOfNode(this.offset, this); } toString(intend) { var _a, _b; return this.value + ((_b = (_a = this.offset) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : ''); } } exports.ObjectPathNode = ObjectPathNode;