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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1212683002: AST changes necessary for generic method support (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index d8ecdccd29f7322623f33cfb4d220d2485a4e249..7b50fd3f82f254f93e3d8946a4835947faa672d3 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -6116,6 +6116,11 @@ abstract class AnalysisOptions {
bool get enableEnum;
/**
+ * Return `true` to enable generic methods (DEP 22).
+ */
+ bool get enableGenericMethods => null;
+
+ /**
* Return `true` to enable null-aware operators (DEP 9).
*/
bool get enableNullAwareOperators;
@@ -6214,6 +6219,11 @@ class AnalysisOptionsImpl implements AnalysisOptions {
bool dart2jsHint = true;
/**
+ * A flag indicating whether generic methods are to be supported (DEP 22).
+ */
+ bool enableGenericMethods = false;
+
+ /**
* A flag indicating whether null-aware operators should be parsed (DEP 9).
*/
bool enableNullAwareOperators = false;
@@ -9560,6 +9570,7 @@ class ParseDartTask extends AnalysisTask {
AnalysisOptions options = context.analysisOptions;
parser.parseFunctionBodies =
options.analyzeFunctionBodiesPredicate(source);
+ parser.parseGenericMethods = options.enableGenericMethods;
_unit = parser.parseCompilationUnit(_tokenStream);
_unit.lineInfo = lineInfo;
AnalysisContext analysisContext = context;

Powered by Google App Engine
This is Rietveld 408576698