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

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: Fixes bug with nested type arguments Created 4 years, 9 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
« 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 fa715aac5b537b4bcba50448ad3312198a88533c..7ec2f2dc3543311669a824db9823497dd6d753f5 100644
--- a/pkg/compiler/lib/src/parser/parser_task.dart
+++ b/pkg/compiler/lib/src/parser/parser_task.dart
@@ -17,7 +17,8 @@ import '../tree/tree.dart' show
Node;
import 'element_listener.dart' show
- ScannerOptions;
+ ScannerOptions,
+ ParserOptions;
import 'listener.dart' show
ParserError;
import 'node_listener.dart' show
@@ -27,10 +28,12 @@ import 'parser.dart' show
class ParserTask extends CompilerTask {
final bool _enableConditionalDirectives;
+ final bool _enableGenericMethods;
- ParserTask(Compiler compiler,
- {bool enableConditionalDirectives: false})
- : this._enableConditionalDirectives = enableConditionalDirectives,
+ ParserTask(Compiler compiler, ParserOptions parserOptions)
+ : this._enableConditionalDirectives =
+ parserOptions.enableConditionalDirectives,
+ this._enableGenericMethods = parserOptions.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(_) {
« 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