MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / initGrammars

Function initGrammars

src/extraction/grammars.ts:244–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242 * Idempotent — safe to call multiple times.
243 */
244export async function initGrammars(): Promise<void> {
245 if (parserInitialized) return;
246
247 await Parser.init();
248
249 parserInitialized = true;
250}
251
252/**
253 * Grammars that ship their own vendored WASMs under `dist/extraction/wasm/`

Callers 15

initMethod · 0.90
openMethod · 0.90
recreateMethod · 0.90
indexAllMethod · 0.90
syncMethod · 0.90

Calls 1

initMethod · 0.45

Tested by

no test coverage detected