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

Method getDistinctFileLanguages

src/db/queries.ts:1716–1719  ·  view source on GitHub ↗

* Distinct languages present in the files table. One indexed aggregate — * lets the dynamic-edge synthesizers skip passes for languages the project * doesn't contain at all (a Kotlin pass has no work on a pure-C repo), so * their cost is zero rather than a full-graph scan that finds nothing

()

Source from the content-addressed store, hash-verified

1714 * their cost is zero rather than a full-graph scan that finds nothing (#1212).
1715 */
1716 getDistinctFileLanguages(): Set<string> {
1717 const rows = this.db.prepare('SELECT DISTINCT language FROM files').all() as Array<{ language: string }>;
1718 return new Set(rows.map((r) => r.language));
1719 }
1720
1721 /** Whether any function of `language` carries `decorator`: a project's marker for a framework it uses. */
1722 hasDecoratedFunction(language: Language, decorator: string): boolean {

Callers 2

synthesizeCallbackEdgesFunction · 0.80

Calls 3

mapMethod · 0.80
allMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected