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

Unified Diff: pkg/compiler/lib/src/parser/parser_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/parser/parser_task.dart
diff --git a/pkg/compiler/lib/src/parser/parser_task.dart b/pkg/compiler/lib/src/parser/parser_task.dart
index 6470d1f83386991b3063038c6fa6f8f0453061f6..02c37195b87c3fbb11fc2bd21ca971f11ee28773 100644
--- a/pkg/compiler/lib/src/parser/parser_task.dart
+++ b/pkg/compiler/lib/src/parser/parser_task.dart
@@ -19,8 +19,11 @@ import 'parser.dart' show Parser;
class ParserTask extends CompilerTask {
final ParserOptions parserOptions;
+ final Compiler compiler;
- ParserTask(Compiler compiler, this.parserOptions) : super(compiler);
+ ParserTask(Compiler compiler, this.parserOptions)
+ : compiler = compiler,
+ super(compiler.measurer);
String get name => 'Parser';
@@ -31,7 +34,7 @@ class ParserTask extends CompilerTask {
Node parseCompilationUnit(Token token) {
return measure(() {
NodeListener listener =
- new NodeListener(const ScannerOptions(), reporter, null);
+ new NodeListener(const ScannerOptions(), compiler.reporter, null);
Parser parser = new Parser(listener, parserOptions);
try {
parser.parseUnit(token);

Powered by Google App Engine
This is Rietveld 408576698