| 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;
|
|
|