botbook/node_modules/ebnf/dist/SemanticHelpers.js

11 lines
387 B
JavaScript
Raw Normal View History

2024-09-04 13:13:15 -03:00
"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