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

Method getNodesByNameSubstring

src/index.ts:2729–2736  ·  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

2727 * inside `getProfileInfoV2` is one FTS token (#1196).
2728 */
2729 getNodesByNameSubstring(
2730 substring: string,
2731 options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {}
2732 ): Node[] {
2733 return this.queries
2734 .findNodesByNameSubstring(substring, options)
2735 .map((r) => r.node);
2736 }
2737
2738 /**
2739 * Search nodes by text

Callers 2

handleExploreMethod · 0.80
buildSearchFunction · 0.80

Calls 2

mapMethod · 0.80

Tested by

no test coverage detected