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

Unified Diff: pkg/compiler/lib/src/scanner/scanner_task.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: pkg/compiler/lib/src/scanner/scanner_task.dart
diff --git a/pkg/compiler/lib/src/scanner/scanner_task.dart b/pkg/compiler/lib/src/scanner/scanner_task.dart
index 3d694a3d7110d4762f94b5764be74e85461665d2..6b25efd119bcbd8fc75f6410791c28abd3109194 100644
--- a/pkg/compiler/lib/src/scanner/scanner_task.dart
+++ b/pkg/compiler/lib/src/scanner/scanner_task.dart
@@ -4,8 +4,8 @@
library dart2js.scanner.task;
-import '../common/tasks.dart' show CompilerTask;
-import '../compiler.dart' show Compiler;
+import '../common/tasks.dart' show CompilerTask, Measurer;
+import '../diagnostics/diagnostic_listener.dart' show DiagnosticReporter;
import '../elements/elements.dart' show CompilationUnitElement, LibraryElement;
import '../script.dart' show Script;
import '../parser/diet_parser_task.dart' show DietParserTask;
@@ -20,12 +20,13 @@ class ScannerTask extends CompilerTask {
final DietParserTask _dietParser;
final bool _preserveComments;
final TokenMap _commentMap;
+ final DiagnosticReporter reporter;
- ScannerTask(Compiler compiler, this._dietParser,
+ ScannerTask(this._dietParser, this.reporter, Measurer measurer,
{bool preserveComments: false, TokenMap commentMap})
: _preserveComments = preserveComments,
_commentMap = commentMap,
- super(compiler) {
+ super(measurer) {
if (_preserveComments && _commentMap == null) {
throw new ArgumentError(
"commentMap must be provided if preserveComments is true");

Powered by Google App Engine
This is Rietveld 408576698