ts-fusion-parser
Version:
Parser for Neos Fusion Files
21 lines (20 loc) • 804 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OperationNode = void 0;
const AbstractNode_1 = require("../../../common/AbstractNode");
const EelNode_1 = require("./EelNode");
class OperationNode extends EelNode_1.EelNode {
constructor(leftHand, operation, rightHand, position) {
super(position);
this.leftHand = leftHand;
AbstractNode_1.AbstractNode.setParentOfNode(this.leftHand, this);
this.rightHand = rightHand;
AbstractNode_1.AbstractNode.setParentOfNode(this.rightHand, this);
this.operation = operation;
this.position = position;
}
toString(intend) {
return this.leftHand.toString() + ` ${this.operation} ` + this.rightHand.toString();
}
}
exports.OperationNode = OperationNode;