Index: pkg/analyzer/lib/src/dart/element/builder.dart |
diff --git a/pkg/analyzer/lib/src/dart/element/builder.dart b/pkg/analyzer/lib/src/dart/element/builder.dart |
index 08de907a9c3e890079a93bd9c8025f5741aba952..fb59f7b802a3ccb9ea53c462cace45cf46b63537 100644 |
--- a/pkg/analyzer/lib/src/dart/element/builder.dart |
+++ b/pkg/analyzer/lib/src/dart/element/builder.dart |
@@ -1303,7 +1303,7 @@ class ElementBuilder extends RecursiveAstVisitor<Object> { |
int count = fields.length; |
for (int i = 0; i < count; i++) { |
FieldElement field = fields[i]; |
- _fieldMap[field.name] = field; |
+ _fieldMap[field.name] ??= field; |
Brian Wilkerson
2016/05/25 23:14:49
Inline field to avoid a list access when not neces
|
} |
} |