mgechev / ngast

Parser for Angular projects.

Home Page:https://mgechev.github.io/ngast/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ContextSymbol.getModules() returns duplicated modules

ghsyeung opened this issue · 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.