()
| 174 | * Idempotent — safe to call multiple times. |
| 175 | */ |
| 176 | export async function initGrammars(): Promise<void> { |
| 177 | if (parserInitialized) return; |
| 178 | |
| 179 | await Parser.init(); |
| 180 | |
| 181 | parserInitialized = true; |
| 182 | } |
| 183 | |
| 184 | /** |
| 185 | * Load grammar WASM files for specific languages only. |
no test coverage detected