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

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

Issue 1723443003: First step of support for parsing and ignoring generic methods. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Moved text from description to dartdoc Created 4 years, 10 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 fa715aac5b537b4bcba50448ad3312198a88533c..713055fd7b69055e6fd9d60b844a9d2061e7ed81 100644
--- a/pkg/compiler/lib/src/parser/parser_task.dart
+++ b/pkg/compiler/lib/src/parser/parser_task.dart
@@ -27,10 +27,13 @@ import 'parser.dart' show
class ParserTask extends CompilerTask {
final bool _enableConditionalDirectives;
+ final bool _enableGenericMethods;
ParserTask(Compiler compiler,
- {bool enableConditionalDirectives: false})
+ {bool enableConditionalDirectives: false,
+ bool enableGenericMethods: false})
Johnni Winther 2016/02/29 10:18:45 Use one [ParserOptions] argument instead.
eernst 2016/03/09 16:28:13 Done, as described in comment on 'compiler.dart'.
: this._enableConditionalDirectives = enableConditionalDirectives,
+ this._enableGenericMethods = enableGenericMethods,
super(compiler);
String get name => 'Parser';
@@ -44,7 +47,9 @@ class ParserTask extends CompilerTask {
NodeListener listener = new NodeListener(
const ScannerOptions(), reporter, null);
Parser parser = new Parser(
- listener, enableConditionalDirectives: _enableConditionalDirectives);
+ listener,
+ enableConditionalDirectives: _enableConditionalDirectives,
+ enableGenericMethods: _enableGenericMethods);
try {
parser.parseUnit(token);
} on ParserError catch(_) {

Powered by Google App Engine
This is Rietveld 408576698