MCPcopy
hub / github.com/colbymchenry/codegraph / initGrammars

Function initGrammars

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

Source from the content-addressed store, hash-verified

174 * Idempotent — safe to call multiple times.
175 */
176export async function initGrammars(): Promise<void> {
177 if (parserInitialized) return;
178
179 await Parser.init();
180
181 parserInitialized = true;
182}
183
184/**
185 * Load grammar WASM files for specific languages only.

Callers 15

initMethod · 0.90
openMethod · 0.90
recreateMethod · 0.90
indexAllMethod · 0.90
syncMethod · 0.90
drupal.test.tsFile · 0.90
extraction.test.tsFile · 0.90

Calls 1

initMethod · 0.80

Tested by

no test coverage detected