MCPcopy
hub / github.com/opentrace/opentrace / loadLanguage

Function loadLanguage

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

Source from the content-addressed store, hash-verified

42}
43
44async function loadLanguage(wasmFile: string): Promise<Language> {
45 const buf = await readFile(join(PUBLIC_DIR, wasmFile));
46 return Language.load(buf);
47}
48
49let tsParser: Parser | null = null;
50let tsxParser: Parser | null = null;

Callers 13

getTsParserFunction · 0.85
getTsxParserFunction · 0.85
getGoParserFunction · 0.85
getPyParserFunction · 0.85
getRustParserFunction · 0.85
getJavaParserFunction · 0.85
getCppParserFunction · 0.85
getCParserFunction · 0.85
getRubyParserFunction · 0.85
getCsharpParserFunction · 0.85
getKotlinParserFunction · 0.85
getSwiftParserFunction · 0.85

Calls 2

readFileFunction · 0.85
loadMethod · 0.80

Tested by

no test coverage detected