MCPcopy
hub / github.com/opentrace/opentrace / getGoParser

Function getGoParser

ui/src/runner/browser/__tests__/helpers.ts:83–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83export async function getGoParser(): Promise<Parser> {
84 await ensureInit();
85 if (!goParser) {
86 goParser = new Parser();
87 const lang = await loadLanguage('tree-sitter-go.wasm');
88 goParser.setLanguage(lang);
89 }
90 return goParser;
91}
92
93export async function getPyParser(): Promise<Parser> {
94 await ensureInit();

Callers 1

parseGoFunction · 0.85

Calls 2

ensureInitFunction · 0.85
loadLanguageFunction · 0.85

Tested by

no test coverage detected