* 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.
()
| 4779 | * qualified name has to be. |
| 4780 | */ |
| 4781 | private readQualifiedNameRuns(): string { |
| 4782 | const runs = new Set<string>(); |
| 4783 | const rows = this.db.prepare('SELECT DISTINCT qualified_name AS name FROM nodes').all() as Array<{ name: string }>; |
| 4784 | for (const row of rows) { |
| 4785 | for (const run of row.name.toLowerCase().split(/[^a-z0-9]+/)) { |
| 4786 | if (run) runs.add(run); |
| 4787 | } |
| 4788 | } |
| 4789 | return [...runs].join('\n'); |
| 4790 | } |
| 4791 | |
| 4792 | /** The names of a language's nodes of the given kinds (repeats included), decoding nothing else. */ |
| 4793 | getNodeNamesOfKinds(language: Language, kinds: readonly NodeKind[]): string[] { |
no test coverage detected