ts-fusion-parser
Version:
Parser for Neos Fusion Files
24 lines (23 loc) • 951 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ObjectStatement = void 0;
const AbstractStatement_1 = require("./AbstractStatement");
const AbstractNode_1 = require("../../common/AbstractNode");
class ObjectStatement extends AbstractStatement_1.AbstractStatement {
constructor(path, operation, block, cursor, position, parent) {
super(position, parent);
this.path = path;
AbstractNode_1.AbstractNode.setParentOfNode(this.path, this);
this.operation = operation;
if (this.operation)
AbstractNode_1.AbstractNode.setParentOfNode(this.operation, this);
this.block = block;
if (this.block)
AbstractNode_1.AbstractNode.setParentOfNode(this.block, this);
this.cursor = cursor;
}
visit(visitor, ...args) {
return visitor.visitObjectStatement(this, args.shift());
}
}
exports.ObjectStatement = ObjectStatement;