UNPKG

@bitloops/bl-transpiler

Version:
22 lines 789 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ArrowFunctionBodyNodeBuilder = void 0; const ArrowFunctionBodyNode_js_1 = require("../nodes/ArrowFunctionBodyNode.js"); class ArrowFunctionBodyNodeBuilder { body; arrowFunctionBodyNode; constructor(metadata) { this.arrowFunctionBodyNode = new ArrowFunctionBodyNode_js_1.ArrowFunctionBodyNode(metadata); } withBody(body) { this.body = body; return this; } build() { this.arrowFunctionBodyNode.addChild(this.body); this.arrowFunctionBodyNode.buildObjectValue(); return this.arrowFunctionBodyNode; } } exports.ArrowFunctionBodyNodeBuilder = ArrowFunctionBodyNodeBuilder; //# sourceMappingURL=ArrowFunctionBodyNodeBuilder.js.map