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

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

Issue 2000323006: Make CompilerTask independent of compiler. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/type_checker_test.dart
diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart
index 0b3fb873e989ce1e2249ddb3cd83e4c8968a8a80..d471cf172fdd353a3b8c5c0f26e32344c60d7476 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -2563,14 +2563,14 @@ analyze(MockCompiler compiler,
new CompilationUnitElementX(new Script(null, null, null), compiler.mainApp);
Element function = new MockElement(compilationUnit);
TreeElements elements = compiler.resolveNodeStatement(node, function);
- compiler.enqueuer.resolution.emptyDeferredTaskQueue();
+ compiler.enqueuer.resolution.emptyDeferredQueueForTesting();
TypeCheckerVisitor checker = new TypeCheckerVisitor(
compiler, elements, compiler.types);
DiagnosticCollector collector = compiler.diagnosticCollector;
collector.clear();
checker.analyze(node);
if (flushDeferred) {
- compiler.enqueuer.resolution.emptyDeferredTaskQueue();
+ compiler.enqueuer.resolution.emptyDeferredQueueForTesting();
}
compareWarningKinds(text, warnings, collector.warnings);
compareWarningKinds(text, errors, collector.errors);
« pkg/compiler/lib/src/compiler.dart ('K') | « tests/compiler/dart2js/patch_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698