[clean] js escope based analyzer

This commit is contained in:
2025-08-02 14:11:04 +01:00
parent f83b1fc00e
commit 41551467d8

View File

@@ -1,30 +0,0 @@
/**
* Record library calls
*/
export class LibraryCallsRecorder {
/**
* @type {Map<string,Map<string,GenericLiteralType[][]>>}
*/
#calls = new Map();
/**
*
* @param {string} moduleName
* @param {string} libraryFunctionSegment
* @param {any[]} argumentsCalled
*/
pushToMap(moduleName, libraryFunctionSegment, argumentsCalled) {
const modulePortion = this.#calls.get(moduleName) ?? new Map();
const defArgs = modulePortion.get(libraryFunctionSegment) ?? [];
defArgs.push(argumentsCalled);
modulePortion.set(libraryFunctionSegment, defArgs);
this.#calls.set(moduleName, modulePortion);
}
get calls() {
return this.#calls;
}
}