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

Function isLanguageSupported

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

Source from the content-addressed store, hash-verified

527 * Returns true if the grammar exists, even if not yet loaded.
528 */
529export function isLanguageSupported(language: Language): boolean {
530 if (language === 'svelte') return true; // custom extractor (script block delegation)
531 if (language === 'vue') return true; // custom extractor (script block delegation)
532 if (language === 'astro') return true; // custom extractor (frontmatter/script block delegation)
533 if (language === 'liquid') return true; // custom regex extractor
534 if (language === 'razor') return true; // custom RazorExtractor (.cshtml/.razor markup)
535 if (language === 'yaml') return true; // file-level tracking only; Drupal routing extraction via framework resolver
536 if (language === 'twig') return true; // file-level tracking only
537 if (language === 'xml') return true; // MyBatis mapper extractor
538 if (language === 'properties') return true; // Spring config keys
539 if (language === 'unknown') return false;
540 return language in WASM_GRAMMAR_FILES;
541}
542
543/**
544 * 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