UNPKG

ts-fusion-parser

Version:

Parser for Neos Fusion Files

24 lines (23 loc) 919 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EelExpressionValue = void 0; const AbstractNode_1 = require("../../common/AbstractNode"); const AbstractPathValue_1 = require("./AbstractPathValue"); class EelExpressionValue extends AbstractPathValue_1.AbstractPathValue { // TODO: check if `nodes` really has to be an array -> per `eelExpressionValue.nodes = eelNodes` probably not constructor(value, position, nodes = []) { super(value, position); this.nodes = nodes; if (Array.isArray(nodes)) { for (const node of nodes) AbstractNode_1.AbstractNode.setParentOfNode(node, this); } else { AbstractNode_1.AbstractNode.setParentOfNode(nodes, this); } } visit(visitor) { return visitor.visitEelExpressionValue(this); } } exports.EelExpressionValue = EelExpressionValue;