mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-07 02:58:02 +00:00
fix: address code review - use SupportedLanguages key type, rename queryCache to compiledQueryCache
Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/f5028cc8-4bc9-4309-8ffb-798fe2bd7a0a Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com>
This commit is contained in:
parent
262116b60c
commit
3db4ad11b8
2 changed files with 3 additions and 3 deletions
|
|
@ -774,7 +774,7 @@ export const processCalls = async (
|
|||
* propagation phase) should pass a long-lived map here to avoid O(N)
|
||||
* query recompilation overhead.
|
||||
*/
|
||||
compiledQueryCache?: Map<string, Parser.Query>,
|
||||
compiledQueryCache?: Map<SupportedLanguages, Parser.Query>,
|
||||
): Promise<ExtractedHeritage[]> => {
|
||||
const parser = await loadParser();
|
||||
const collectedHeritage: ExtractedHeritage[] = [];
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ export async function runCrossFileBindingPropagation(
|
|||
// Compiled query objects keyed by language name. Shared across all processCalls
|
||||
// invocations in this phase so the same tree-sitter query string is only
|
||||
// compiled once per language instead of once per file (O(1) vs O(N)).
|
||||
const queryCache = new Map<SupportedLanguages, Parser.Query>();
|
||||
const compiledQueryCache = new Map<SupportedLanguages, Parser.Query>();
|
||||
let timedOut = false;
|
||||
|
||||
// Snapshot total topological candidates for progress math. We walk the
|
||||
|
|
@ -242,7 +242,7 @@ export async function runCrossFileBindingPropagation(
|
|||
importedRawReturnTypesMap.size > 0 ? importedRawReturnTypesMap : undefined,
|
||||
undefined,
|
||||
undefined,
|
||||
queryCache,
|
||||
compiledQueryCache,
|
||||
);
|
||||
crossFileResolved++;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue