handle unknown nodes in extract_identifiers (#2510) (#2514)

pull/2518/head
Conduitry 6 years ago
parent e7885f2cb1
commit 51f2a3b231

@ -106,7 +106,7 @@ export function extract_names(param: Node) {
export function extract_identifiers(param: Node) { export function extract_identifiers(param: Node) {
const nodes: Node[] = []; const nodes: Node[] = [];
extractors[param.type](nodes, param); extractors[param.type] && extractors[param.type](nodes, param);
return nodes; return nodes;
} }

Loading…
Cancel
Save