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

Function isLanguageSupported

src/extraction/grammars.ts:320–332  ·  view source on GitHub ↗
(language: Language)

Source from the content-addressed store, hash-verified

318 * Returns true if the grammar exists, even if not yet loaded.
319 */
320export function isLanguageSupported(language: Language): boolean {
321 if (language === 'svelte') return true; // custom extractor (script block delegation)
322 if (language === 'vue') return true; // custom extractor (script block delegation)
323 if (language === 'astro') return true; // custom extractor (frontmatter/script block delegation)
324 if (language === 'liquid') return true; // custom regex extractor
325 if (language === 'razor') return true; // custom RazorExtractor (.cshtml/.razor markup)
326 if (language === 'yaml') return true; // file-level tracking only; Drupal routing extraction via framework resolver
327 if (language === 'twig') return true; // file-level tracking only
328 if (language === 'xml') return true; // MyBatis mapper extractor
329 if (language === 'properties') return true; // Spring config keys
330 if (language === 'unknown') return false;
331 return language in WASM_GRAMMAR_FILES;
332}
333
334/**
335 * Check if a grammar has been loaded and is ready for parsing.

Callers 9

extractExtensionsFunction · 0.90
indexFileWithContentMethod · 0.90
processCodeBlocksMethod · 0.90
processScriptContentMethod · 0.90
processScriptBlockMethod · 0.90
processScriptBlockMethod · 0.90
extractMethod · 0.90
extraction.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected