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

Method readQualifiedNameRuns

src/db/queries.ts:4670–4679  ·  view source on GitHub ↗

* The runs of ASCII letters and digits in the distinct qualified names, * lowercased and newline-joined: where a word LIKE could find in a * qualified name has to be.

()

Source from the content-addressed store, hash-verified

4668 * qualified name has to be.
4669 */
4670 private readQualifiedNameRuns(): string {
4671 const runs = new Set<string>();
4672 const rows = this.db.prepare('SELECT DISTINCT qualified_name AS name FROM nodes').all() as Array<{ name: string }>;
4673 for (const row of rows) {
4674 for (const run of row.name.toLowerCase().split(/[^a-z0-9]+/)) {
4675 if (run) runs.add(run);
4676 }
4677 }
4678 return [...runs].join('\n');
4679 }
4680
4681 /** The names of a language's nodes of the given kinds (repeats included), decoding nothing else. */
4682 getNodeNamesOfKinds(language: Language, kinds: readonly NodeKind[]): string[] {

Callers 1

searchNodesLikeMethod · 0.95

Calls 4

allMethod · 0.65
prepareMethod · 0.65
addMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected