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

Unified Diff: pkg/compiler/lib/src/parser/parser_task.dart

Issue 2521073003: Remove the ability in dart2js to turn off syntax-only generic methods. (Closed)
Patch Set: eernst Created 4 years, 1 month 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
« no previous file with comments | « pkg/compiler/lib/src/parser/parser.dart ('k') | pkg/compiler/lib/src/parser/partial_elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 07734b9def19152138d2cd364c44fa553ed0adba..e6e8bfe7672b8c45dd296783ad69860f5fcaace3 100644
--- a/pkg/compiler/lib/src/parser/parser_task.dart
+++ b/pkg/compiler/lib/src/parser/parser_task.dart
@@ -8,7 +8,6 @@ import '../common.dart';
import '../common/tasks.dart' show CompilerTask;
import '../compiler.dart' show Compiler;
import '../elements/modelx.dart' show ElementX;
-import '../options.dart' show ParserOptions;
import '../tokens/token.dart' show Token;
import '../tree/tree.dart' show Node;
import 'element_listener.dart' show ScannerOptions;
@@ -17,12 +16,9 @@ import 'node_listener.dart' show NodeListener;
import 'parser.dart' show Parser;
class ParserTask extends CompilerTask {
- final ParserOptions parserOptions;
final Compiler compiler;
- ParserTask(Compiler compiler, this.parserOptions)
- : compiler = compiler,
- super(compiler.measurer);
+ ParserTask(Compiler compiler): compiler = compiler, super(compiler.measurer);
String get name => 'Parser';
@@ -34,7 +30,7 @@ class ParserTask extends CompilerTask {
return measure(() {
NodeListener listener =
new NodeListener(const ScannerOptions(), compiler.reporter, null);
- Parser parser = new Parser(listener, parserOptions);
+ Parser parser = new Parser(listener);
try {
parser.parseUnit(token);
} on ParserError catch (_) {
« no previous file with comments | « pkg/compiler/lib/src/parser/parser.dart ('k') | pkg/compiler/lib/src/parser/partial_elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698