MCPcopy
hub / github.com/colbymchenry/codegraph / bump

Method bump

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected