add comment to getImporters

This commit is contained in:
ElevateBart
2021-08-16 21:04:25 -05:00
parent 4139631b15
commit a204f5eeca

View File

@@ -134,6 +134,12 @@ export const makeCypressPlugin = (
}
}
/**
* Gets all the modules that import the set of modules passed in parameters
* @param modules the set of module whose dependents to return
* @param alreadyExploredFiles set of files that have already been looked at and should be avoided in case of circular dependency
* @returns a set of ModuleMode that import directly the current modules
*/
function getImporters (modules: Set<ModuleNode>, alreadyExploredFiles: Set<string>): Set<ModuleNode> {
const allImporters = new Set<ModuleNode>()