d56cabaf1f
This remove the iterators from the NameSpace interface and instead collects the list of builders belonging to a library or declaration directly inside these builders. Adds ComputedNameSpace for import, export and prefix name spaces. This allows for replacing a member and has a filteredIterator function. These name spaces are computed from import/exports and therefore need to be iterated through directly and replace builder when two builders collide. Change-Id: Iec974656c5331498aa1cfca7973300ac6e044994 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/428820 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>