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

Unified Diff: pkg/compiler/lib/src/parser/diet_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
Index: pkg/compiler/lib/src/parser/diet_parser_task.dart
diff --git a/pkg/compiler/lib/src/parser/diet_parser_task.dart b/pkg/compiler/lib/src/parser/diet_parser_task.dart
index 9afc8d4dcb90e6f532ce029a5d19aaad3aaa18f7..9d69453569b15b86747322c53b84653c455d4870 100644
--- a/pkg/compiler/lib/src/parser/diet_parser_task.dart
+++ b/pkg/compiler/lib/src/parser/diet_parser_task.dart
@@ -18,15 +18,19 @@ import 'listener.dart' show
ParserError;
import 'element_listener.dart' show
ElementListener,
- ScannerOptions;
+ ScannerOptions,
+ ParserOptions;
import 'partial_parser.dart' show
PartialParser;
class DietParserTask extends CompilerTask {
final bool _enableConditionalDirectives;
+ final bool _enableGenericMethods;
- DietParserTask(Compiler compiler, {bool enableConditionalDirectives})
- : this._enableConditionalDirectives = enableConditionalDirectives,
+ DietParserTask(Compiler compiler, ParserOptions parserOptions)
+ : this._enableConditionalDirectives =
+ parserOptions.enableConditionalDirectives,
+ this._enableGenericMethods = parserOptions.enableGenericMethods,
super(compiler);
final String name = 'Diet Parser';
@@ -40,7 +44,9 @@ class DietParserTask extends CompilerTask {
ElementListener listener = new ElementListener(
scannerOptions, compiler.reporter, compilationUnit, idGenerator);
PartialParser parser = new PartialParser(
- listener, enableConditionalDirectives: _enableConditionalDirectives);
+ listener,
+ enableConditionalDirectives: _enableConditionalDirectives,
+ enableGenericMethods: _enableGenericMethods);
try {
parser.parseUnit(tokens);
} on ParserError catch(_) {
« no previous file with comments | « pkg/compiler/lib/src/parser/class_element_parser.dart ('k') | pkg/compiler/lib/src/parser/element_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698