mgechev/ngast

ContextSymbol.getModules() returns duplicated modules

ghsyeung opened this issue · 2 comments

Since NgAnalyzedModules.ngModuleByPipeOrDirective returns a map, and getModules uses only the values. There are multiple references/clones of the same module metadata (like CommonModule) returned by getModules().

Looks like we need to de-dupe by type.reference.

Do you have time for a quick PR? Otherwise, I can address this issue early next week.