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