()
| 71 | } |
| 72 | |
| 73 | export async function getTsxParser(): Promise<Parser> { |
| 74 | await ensureInit(); |
| 75 | if (!tsxParser) { |
| 76 | tsxParser = new Parser(); |
| 77 | const lang = await loadLanguage('tree-sitter-tsx.wasm'); |
| 78 | tsxParser.setLanguage(lang); |
| 79 | } |
| 80 | return tsxParser; |
| 81 | } |
| 82 | |
| 83 | export async function getGoParser(): Promise<Parser> { |
| 84 | await ensureInit(); |
no test coverage detected