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

Unified Diff: tests/compiler/dart2js/exit_code_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/exit_code_test.dart
diff --git a/tests/compiler/dart2js/exit_code_test.dart b/tests/compiler/dart2js/exit_code_test.dart
index 3c7b2d9609da6282e618728702d35b1f460a743b..ff419c7fce67db29d8626b60a6c6ec9becb404c3 100644
--- a/tests/compiler/dart2js/exit_code_test.dart
+++ b/tests/compiler/dart2js/exit_code_test.dart
@@ -137,10 +137,11 @@ class TestDiagnosticReporter extends DiagnosticReporterWrapper {
}
class TestScanner extends ScannerTask {
- TestScanner(TestCompiler compiler)
- : super(compiler, compiler.dietParser);
+ final TestCompiler compiler;
- TestCompiler get compiler => super.compiler;
+ TestScanner(TestCompiler compiler)
+ : compiler = compiler,
+ super(compiler.dietParser, compiler.reporter, compiler.measurer);
void scanElements(CompilationUnitElement compilationUnit) {
compiler.test('ScannerTask.scanElements');

Powered by Google App Engine
This is Rietveld 408576698