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