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

Function clearParserCache

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

Source from the content-addressed store, hash-verified

808 * Clear parser/grammar caches (useful for testing)
809 */
810export function clearParserCache(): void {
811 for (const parser of parserCache.values()) {
812 parser.delete();
813 }
814 parserCache.clear();
815 // Note: languageCache is NOT cleared — WASM languages persist.
816 // To fully re-init, set parserInitialized = false and call initGrammars() again.
817 unavailableGrammarErrors.clear();
818}
819
820/**
821 * Report grammars that failed to load.

Callers 1

Calls 2

deleteMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected