nimma
Version:
Scalable JSONPath engine.
18 lines (12 loc) • 483 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var builders = require('../ast/builders.cjs');
var scope = require('./scope.cjs');
const ALLOC_STATE_CALL = builders.callExpression(scope.default.allocState, []);
function generateAllocState(count) {
const id = builders.identifier(`state${count}`);
return builders.variableDeclaration('const', [
builders.variableDeclarator(id, ALLOC_STATE_CALL),
]);
}
exports.default = generateAllocState;