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

Method getNodesByNameSubstring

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

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

Callers 1

handleExploreMethod · 0.80

Calls 1

Tested by

no test coverage detected