MCPcopy
hub / github.com/opentrace/opentrace / parseCsharp

Function parseCsharp

ui/src/runner/browser/__tests__/helpers.ts:266–271  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

264
265/** Parse C# source and return root node. */
266export async function parseCsharp(source: string): Promise<SyntaxNode> {
267 const parser = await getCsharpParser();
268 const tree = parser.parse(source);
269 if (!tree) throw new Error('Failed to parse C# source');
270 return tree.rootNode;
271}
272
273/** Parse Kotlin source and return root node. */
274export async function parseKotlin(source: string): Promise<SyntaxNode> {

Callers 1

Calls 1

getCsharpParserFunction · 0.85

Tested by

no test coverage detected