MCPcopy
hub / github.com/tobi/qmd / getQuery

Function getQuery

src/ast.ts:251–258  ·  view source on GitHub ↗

* Get or create a compiled query for the given language.

(language: SupportedLanguage, grammar: LanguageType)

Source from the content-addressed store, hash-verified

249 * Get or create a compiled query for the given language.
250 */
251function getQuery(language: SupportedLanguage, grammar: LanguageType): QueryType {
252 if (!queryCache.has(language)) {
253 const source = LANGUAGE_QUERIES[language];
254 const query = new QueryClass!(grammar, source);
255 queryCache.set(language, query);
256 }
257 return queryCache.get(language)!;
258}
259
260// =============================================================================
261// AST Break Point Extraction

Callers 2

getASTBreakPointsFunction · 0.85
getASTStatusFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected