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

Unified Diff: pkg/kernel/lib/class_hierarchy.dart

Issue 2542143003: Fix a bug in kernel class hierarchy. (Closed)
Patch Set: Created 4 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/class_hierarchy.dart
diff --git a/pkg/kernel/lib/class_hierarchy.dart b/pkg/kernel/lib/class_hierarchy.dart
index 32bf695881c682f71faca80fc46042861275b521..17a981dc9eec376a8c437d87a15d01d87e45fa85 100644
--- a/pkg/kernel/lib/class_hierarchy.dart
+++ b/pkg/kernel/lib/class_hierarchy.dart
@@ -415,10 +415,14 @@ class ClassHierarchy {
}
// One of the two lists is now exhausted, copy over the remains.
while (i < declared.length) {
- result[storeIndex++] = declared[i++];
+ Member declaredMember = declared[i++];
+ if (skipAbstractMembers && declaredMember.isAbstract) continue;
+ result[storeIndex++] = declaredMember;
}
while (j < inherited.length) {
- result[storeIndex++] = inherited[j++];
+ Member inheritedMember = inherited[j++];
+ if (skipAbstractMembers && inheritedMember.isAbstract) continue;
+ result[storeIndex++] = inheritedMember;
}
result.length = storeIndex;
return result;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698