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

Method collectNameSegmentRows

src/db/queries.ts:540–545  ·  view source on GitHub ↗

* Collect (segment, name) rows for a name, honouring the same session-dedupe * semantics as insertNameSegments(). Shared by the bulk write paths.

(name: string, out: unknown[][])

Source from the content-addressed store, hash-verified

538 * semantics as insertNameSegments(). Shared by the bulk write paths.
539 */
540 private collectNameSegmentRows(name: string, out: unknown[][]): void {
541 if (this.segmentedNames.has(name)) return;
542 if (this.segmentedNames.size >= QueryBuilder.MAX_SEGMENTED_NAMES) this.segmentedNames.clear();
543 this.segmentedNames.add(name);
544 for (const segment of splitIdentifierSegments(name)) out.push([segment, name]);
545 }
546
547 /**
548 * Update an existing node

Callers 3

insertNameSegmentsMethod · 0.95
insertNodesMethod · 0.95

Calls 3

splitIdentifierSegmentsFunction · 0.90
hasMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected