@bitloops/bl-transpiler
Version:
The one and only Bitloops Language transpiler
22 lines • 789 B
JavaScript
;
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