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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2918373002: Named parameters of generic functions should have names. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index cbf2bfc4433fb89868694740f044f409feacb908..7d9e91e664783b3838dfe5694611f90f2a38f859 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -7600,6 +7600,7 @@ class ParameterElementImpl extends VariableElementImpl
if (offset == 0 && _unlinkedParam != null) {
if (isSynthetic ||
(_unlinkedParam.name.isEmpty &&
+ _unlinkedParam.kind != UnlinkedParamKind.named &&
enclosingElement is GenericFunctionTypeElement)) {
return -1;
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698