(nameNode: SyntaxNode | null)
| 729 | if (this.tree) { |
| 730 | const declCounts = new Map<string, number>(); |
| 731 | const bump = (nameNode: SyntaxNode | null) => { |
| 732 | // `simple_identifier` is Kotlin's name node (a property declarator's name). |
| 733 | if (nameNode && (nameNode.type === 'identifier' || nameNode.type === 'simple_identifier')) { |
| 734 | const nm = getNodeText(nameNode, this.source); |
| 735 | if (targets.has(nm)) declCounts.set(nm, (declCounts.get(nm) ?? 0) + 1); |
| 736 | } |
| 737 | }; |
| 738 | const dstack: SyntaxNode[] = [this.tree.rootNode]; |
| 739 | let dvisited = 0; |
| 740 | while (dstack.length > 0 && dvisited < TreeSitterExtractor.MAX_VALUE_REF_NODES) { |
nothing calls this directly
no test coverage detected