Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Unified Diff: tests/compiler/dart2js/memory_compiler.dart

Issue 2814973003: Extract ClosedWorldRefiner implementation from ClosedWorldImpl to ClosedWorldBase (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/memory_compiler.dart
diff --git a/tests/compiler/dart2js/memory_compiler.dart b/tests/compiler/dart2js/memory_compiler.dart
index 400572524c5412ed1d4287bdac8747023d6b97b7..809dc999ee27f454db916daa4077f3a0c1500fdd 100644
--- a/tests/compiler/dart2js/memory_compiler.dart
+++ b/tests/compiler/dart2js/memory_compiler.dart
@@ -15,7 +15,8 @@ import 'package:compiler/compiler_new.dart'
Diagnostic,
PackagesDiscoveryProvider;
import 'package:compiler/src/diagnostics/messages.dart' show Message;
-import 'package:compiler/src/elements/entities.dart' show LibraryEntity;
+import 'package:compiler/src/elements/entities.dart'
+ show LibraryEntity, MemberEntity;
import 'package:compiler/src/enqueue.dart' show ResolutionEnqueuer;
import 'package:compiler/src/null_compiler_output.dart' show NullCompilerOutput;
import 'package:compiler/src/library_loader.dart' show LoadedLibraries;
@@ -183,10 +184,10 @@ CompilerImpl compilerFor(
compiler.backend.constantCompilerTask
.copyConstantValues(cachedCompiler.backend.constantCompilerTask);
- Iterable cachedTreeElements =
+ Iterable<MemberEntity> cachedTreeElements =
cachedCompiler.enqueuer.resolution.processedEntities;
- cachedTreeElements.forEach((element) {
- if (element.library.isPlatformLibrary) {
+ cachedTreeElements.forEach((MemberEntity element) {
+ if (element.library.canonicalUri.scheme == 'dart') {
resolutionEnqueuer.registerProcessedElementInternal(element);
}
});

Powered by Google App Engine
This is Rietveld 408576698