(source: string)
| 46 | } |
| 47 | |
| 48 | export async function parsePython(source: string): Promise<SyntaxNode> { |
| 49 | const parser = await getPythonParser(); |
| 50 | const tree = parser.parse(source); |
| 51 | if (!tree) throw new Error('Failed to parse Python source'); |
| 52 | return tree.rootNode; |
| 53 | } |
| 54 | |
| 55 | let phpParser: Parser | null = null; |
| 56 |
nothing calls this directly
no test coverage detected