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

Method getNodesByNameSubstring

src/index.ts:2659–2666  ·  view source on GitHub ↗

* Nodes whose name CONTAINS `substring` (LIKE scan, ASCII-case-insensitive, * shortest-first). The camel-infix lookup FTS can't do — `profileInfo` * inside `getProfileInfoV2` is one FTS token (#1196).

(
    substring: string,
    options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {}
  )

Source from the content-addressed store, hash-verified

2657 * inside `getProfileInfoV2` is one FTS token (#1196).
2658 */
2659 getNodesByNameSubstring(
2660 substring: string,
2661 options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {}
2662 ): Node[] {
2663 return this.queries
2664 .findNodesByNameSubstring(substring, options)
2665 .map((r) => r.node);
2666 }
2667
2668 /**
2669 * Search nodes by text

Callers 2

handleExploreMethod · 0.80
buildSearchFunction · 0.80

Calls 2

mapMethod · 0.80

Tested by

no test coverage detected