11 lines
No EOL
387 B
JavaScript
11 lines
No EOL
387 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.findChildrenByType = void 0;
|
|
/**
|
|
* Finds all the direct childs of a specifyed type
|
|
*/
|
|
function findChildrenByType(token, type) {
|
|
return token.children ? token.children.filter(x => x.type == type) : [];
|
|
}
|
|
exports.findChildrenByType = findChildrenByType;
|
|
//# sourceMappingURL=SemanticHelpers.js.map
|