(node: Node, f: (child: Node) => void)
| 880 | } |
| 881 | |
| 882 | const forEachChild = (node: Node, f: (child: Node) => void) => { |
| 883 | for (const k of visitorKeys[node.type]) { |
| 884 | if (k in typeKeys) continue |
| 885 | const child = (node as never)[k] as Node | (Node | null)[] | null |
| 886 | if (!Array.isArray(child)) { |
| 887 | if (child) f(child) |
| 888 | } else for (const item of child) if (item) f(item) |
| 889 | } |
| 890 | } |
| 891 | |
| 892 | const moduleSyntaxKinds = { |
| 893 | ImportDeclaration: 1, |
no outgoing calls
no test coverage detected