MCPcopy
hub / github.com/opentrace/opentrace / getRustParser

Function getRustParser

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

Source from the content-addressed store, hash-verified

133}
134
135export async function getRustParser(): Promise<Parser> {
136 await ensureInit();
137 if (!rustParser) {
138 rustParser = new Parser();
139 const lang = await loadLanguage('tree-sitter-rust.wasm');
140 rustParser.setLanguage(lang);
141 }
142 return rustParser;
143}
144
145export async function getJavaParser(): Promise<Parser> {
146 await ensureInit();

Callers 1

parseRustFunction · 0.85

Calls 2

ensureInitFunction · 0.85
loadLanguageFunction · 0.85

Tested by

no test coverage detected