()
| 133 | } |
| 134 | |
| 135 | export async function getRustParser(): Promise<Parser> { |
| 136 | await ensureInit(); |
| 137 | if (!rustParser) { |
| 138 | rustParser = new Parser(); |
| 139 | const lang = await loadLanguage('tree-sitter-rust.wasm'); |
| 140 | rustParser.setLanguage(lang); |
| 141 | } |
| 142 | return rustParser; |
| 143 | } |
| 144 | |
| 145 | export async function getJavaParser(): Promise<Parser> { |
| 146 | await ensureInit(); |
no test coverage detected