Index: pkg/analyzer/lib/src/task/dart.dart |
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart |
index 62fed3be1866d76cfc386fb077736ee9e2474424..41f29c60bf6961b7369b93c3ecaf7babf113c277 100644 |
--- a/pkg/analyzer/lib/src/task/dart.dart |
+++ b/pkg/analyzer/lib/src/task/dart.dart |
@@ -2692,6 +2692,7 @@ class ParseDartTask extends SourceBasedAnalysisTask { |
Parser parser = new Parser(source, errorListener); |
AnalysisOptions options = context.analysisOptions; |
parser.parseFunctionBodies = options.analyzeFunctionBodiesPredicate(source); |
+ parser.parseGenericMethods = options.enableGenericMethods; |
CompilationUnit unit = parser.parseCompilationUnit(tokenStream); |
unit.lineInfo = lineInfo; |