| Index: lib/compiler/implementation/native_handler.dart
|
| diff --git a/lib/compiler/implementation/native_handler.dart b/lib/compiler/implementation/native_handler.dart
|
| index 66c05892479f64db46e034f004e8a88cb66eae37..a9533dc074da809a858ce1d69b83f6f5a48eff5f 100644
|
| --- a/lib/compiler/implementation/native_handler.dart
|
| +++ b/lib/compiler/implementation/native_handler.dart
|
| @@ -40,9 +40,7 @@ void processNativeClassesInLibrary(Enqueuer world,
|
| LibraryElement library) {
|
| bool hasNativeClass = false;
|
| final compiler = emitter.compiler;
|
| - for (Link<Element> link = library.localMembers;
|
| - !link.isEmpty(); link = link.tail) {
|
| - Element element = link.head;
|
| + library.forEachLocalMember((Element element) {
|
| if (element.kind == ElementKind.CLASS) {
|
| ClassElement classElement = element;
|
| if (classElement.isNative()) {
|
| @@ -60,7 +58,7 @@ void processNativeClassesInLibrary(Enqueuer world,
|
| addSubtypes(classElement, emitter.nativeEmitter);
|
| }
|
| }
|
| - }
|
| + }, includeInjectedMembers: true);
|
| if (hasNativeClass) {
|
| world.registerStaticUse(compiler.findHelper(
|
| const SourceString('dynamicFunction')));
|
|
|