MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / getGrammarName

Function getGrammarName

src/core/tree-sitter.ts:219–221  ·  view source on GitHub ↗
(ext: string)

Source from the content-addressed store, hash-verified

217}
218
219export function getGrammarName(ext: string): string | null {
220 return EXT_TO_GRAMMAR[ext.toLowerCase()] ?? null;
221}
222
223export async function parseWithTreeSitter(content: string, ext: string): Promise<CodeSymbol[] | null> {
224 const grammarName = getGrammarName(ext);

Callers 2

parseWithTreeSitterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected