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

Method getNodesByNameSubstring

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

2752 * inside `getProfileInfoV2` is one FTS token (#1196).
2753 */
2754 getNodesByNameSubstring(
2755 substring: string,
2756 options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {}
2757 ): Node[] {
2758 return this.queries
2759 .findNodesByNameSubstring(substring, options)
2760 .map((r) => r.node);
2761 }
2762
2763 /**
2764 * Search nodes by text

Callers 2

handleExploreMethod · 0.80
buildSearchFunction · 0.80

Calls 2

mapMethod · 0.80

Tested by

no test coverage detected