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

Function clearParserCache

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

Source from the content-addressed store, hash-verified

1098 * Clear parser/grammar caches (useful for testing)
1099 */
1100export function clearParserCache(): void {
1101 for (const parser of parserCache.values()) {
1102 parser.delete();
1103 }
1104 parserCache.clear();
1105 // Note: languageCache is NOT cleared — WASM languages persist.
1106 // To fully re-init, set parserInitialized = false and call initGrammars() again.
1107 unavailableGrammarErrors.clear();
1108}
1109
1110/**
1111 * Report grammars that failed to load.

Callers 1

Calls 2

deleteMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected