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

Method getNodesByNameSubstring

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

1763 * inside `getProfileInfoV2` is one FTS token (#1196).
1764 */
1765 getNodesByNameSubstring(
1766 substring: string,
1767 options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {}
1768 ): Node[] {
1769 return this.queries
1770 .findNodesByNameSubstring(substring, options)
1771 .map((r) => r.node);
1772 }
1773
1774 /**
1775 * Search nodes by text

Callers 2

handleExploreMethod · 0.80
buildSearchFunction · 0.80

Calls 2

mapMethod · 0.80

Tested by

no test coverage detected