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

Method getNodesByNameSubstring

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

1357 * inside `getProfileInfoV2` is one FTS token (#1196).
1358 */
1359 getNodesByNameSubstring(
1360 substring: string,
1361 options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {}
1362 ): Node[] {
1363 return this.queries
1364 .findNodesByNameSubstring(substring, options)
1365 .map((r) => r.node);
1366 }
1367
1368 /**
1369 * Search nodes by text

Callers 1

handleExploreMethod · 0.80

Calls 1

Tested by

no test coverage detected