UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

16 lines (14 loc) 595 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const getRangeFromArray_1 = require("./getRangeFromArray"); function fillAndGetChildren(opts) { const children = getRangeFromArray_1.getRangeFromArray(opts.allChildren, opts.index, opts.structures.length, opts.expectedKind); if (opts.fillFunction != null) { for (let i = 0; i < children.length; i++) { opts.fillFunction(children[i], opts.structures[i]); } } return children; } exports.fillAndGetChildren = fillAndGetChildren; //# sourceMappingURL=fillAndGetChildren.js.map