(id: SyntaxNode | null | undefined)
| 954 | const out = new Set<string>(); |
| 955 | for (const unit of units) { |
| 956 | const bind = (id: SyntaxNode | null | undefined): void => { |
| 957 | if (id?.type !== 'identifier') return; |
| 958 | const name = getNodeText(id, source); |
| 959 | if (names.has(name)) out.add(`${unit.id}|${name}`); |
| 960 | }; |
| 961 | const declares = (n: SyntaxNode): boolean => { |
| 962 | for (const c of childrenOf(n)) { |
| 963 | if (c && !c.isNamed && c.type === ':=') return true; |
no test coverage detected