MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / bump

Method bump

src/extraction/tree-sitter.ts:811–817  ·  view source on GitHub ↗
(nameNode: SyntaxNode | null)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 4

getNodeTextFunction · 0.90
hasMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected