The names of a language's nodes of the given kinds (repeats included), decoding nothing else.
(language: Language, kinds: readonly NodeKind[])
| 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[] { |
| 4683 | // `+language`: the kind index narrows further than the language one. |
| 4684 | const rows = this.db |
| 4685 | .prepare(`SELECT name FROM nodes WHERE kind IN (${kinds.map(() => '?').join(', ')}) AND +language = ?`) |
| 4686 | .all(...kinds, language) as Array<{ name: string }>; |
| 4687 | return rows.map((r) => r.name); |
| 4688 | } |
| 4689 | |
| 4690 | /** |
| 4691 | * The import node of every C / C++ `#include`, narrowed to the path it |