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

Method getNodesByNameSubstring

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

1287 * inside `getProfileInfoV2` is one FTS token (#1196).
1288 */
1289 getNodesByNameSubstring(
1290 substring: string,
1291 options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {}
1292 ): Node[] {
1293 return this.queries
1294 .findNodesByNameSubstring(substring, options)
1295 .map((r) => r.node);
1296 }
1297
1298 /**
1299 * Search nodes by text

Callers 1

handleExploreMethod · 0.80

Calls 1

Tested by

no test coverage detected