(n: SyntaxNode)
| 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; |
| 964 | } |
| 965 | return false; |
| 966 | }; |
| 967 | const stack: SyntaxNode[] = [unit]; |
| 968 | while (stack.length > 0) { |
| 969 | const n = stack.pop()!; |
no test coverage detected