MCPcopy
hub / github.com/opentrace/opentrace / parsePython

Function parsePython

ui/src/components/pipeline/__tests__/helpers.ts:48–53  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

46}
47
48export 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
55let phpParser: Parser | null = null;
56

Callers

nothing calls this directly

Calls 1

getPythonParserFunction · 0.85

Tested by

no test coverage detected