UNPKG

code-migration-helpers

Version:

Provides useful (but currently not thorough) code migration helpers

11 lines 309 B
import ts from 'typescript'; export function getNodeIdentifiers(inputNode) { const identifiers = []; ts.forEachChild(inputNode, node => { if (ts.isIdentifier(node)) { identifiers.push(node); } }); return identifiers; } //# sourceMappingURL=getNodeIdentifiers.js.map