MCPcopy
hub / github.com/opentrace/opentrace / getWasmPath

Function getWasmPath

ui/src/components/pipeline/wasm.ts:110–121  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

108 * @throws If the language key is not recognized.
109 */
110export function getWasmPath(key: string): string {
111 if (key === 'runtime') {
112 return join(getWasmDir(), 'web-tree-sitter.wasm');
113 }
114 const file = WASM_FILES[key];
115 if (!file) {
116 throw new Error(
117 `Unknown language "${key}". Supported: ${SUPPORTED_LANGUAGES.join(', ')}, runtime`,
118 );
119 }
120 return join(getWasmDir(), file);
121}

Callers 3

initTreeSitterFunction · 0.90
getPythonParserFunction · 0.90
getPhpParserFunction · 0.90

Calls 1

getWasmDirFunction · 0.85

Tested by 3

initTreeSitterFunction · 0.72
getPythonParserFunction · 0.72
getPhpParserFunction · 0.72