()
| 203 | } |
| 204 | |
| 205 | export async function getSwiftParser(): Promise<Parser> { |
| 206 | await ensureInit(); |
| 207 | if (!swiftParser) { |
| 208 | swiftParser = new Parser(); |
| 209 | const lang = await loadLanguage('tree-sitter-swift.wasm'); |
| 210 | swiftParser.setLanguage(lang); |
| 211 | } |
| 212 | return swiftParser; |
| 213 | } |
| 214 | |
| 215 | export async function getPhpParser(): Promise<Parser> { |
| 216 | await ensureInit(); |
no test coverage detected