* 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
()
| 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 { |
no test coverage detected