Index: pkg/analyzer/lib/src/generated/error_verifier.dart |
diff --git a/pkg/analyzer/lib/src/generated/error_verifier.dart b/pkg/analyzer/lib/src/generated/error_verifier.dart |
index d201e96438dfd3efa9e7f67001eff3653dde69c7..78b7cf3b8c0ff0891b7f7d30c016ed907ce22046 100644 |
--- a/pkg/analyzer/lib/src/generated/error_verifier.dart |
+++ b/pkg/analyzer/lib/src/generated/error_verifier.dart |
@@ -3813,7 +3813,9 @@ class ErrorVerifier extends RecursiveAstVisitor<Object> { |
} |
// Check methods. |
List<MethodElement> methodElements = superclassElement.methods; |
- for (MethodElement methodElement in methodElements) { |
+ int length = methodElements.length; |
+ for (int i = 0; i < length; i++) { |
+ MethodElement methodElement = methodElements[i]; |
// We need the same name. |
if (methodElement.name != executableElementName) { |
continue; |