twing
Version:
First-class Twig engine for Node.js
17 lines (16 loc) • 550 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createBaseCallNode = void 0;
const expression_1 = require("../expression");
const createBaseCallNode = (type, operatorName, operand, callArguments, line, column) => {
let children = {
arguments: callArguments
};
if (operand !== null) {
children.operand = operand;
}
return (0, expression_1.createBaseExpressionNode)(type, {
operatorName
}, children, line, column);
};
exports.createBaseCallNode = createBaseCallNode;