(nameNode: SyntaxNode | null)
| 809 | if (this.tree) { |
| 810 | const declCounts = new Map<string, number>(); |
| 811 | const bump = (nameNode: SyntaxNode | null) => { |
| 812 | // `simple_identifier` is Kotlin's name node (a property declarator's name). |
| 813 | if (nameNode && (nameNode.type === 'identifier' || nameNode.type === 'simple_identifier')) { |
| 814 | const nm = getNodeText(nameNode, this.source); |
| 815 | if (targets.has(nm)) declCounts.set(nm, (declCounts.get(nm) ?? 0) + 1); |
| 816 | } |
| 817 | }; |
| 818 | const dstack: SyntaxNode[] = [this.tree.rootNode]; |
| 819 | let dvisited = 0; |
| 820 | while (dstack.length > 0 && dvisited < TreeSitterExtractor.MAX_VALUE_REF_NODES) { |
nothing calls this directly
no test coverage detected