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

Unified Diff: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java

Issue 10656034: Show override indicator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
index d758b76662a5b33206f6e49d127a61cf1b280125..4555fa21a0af048b88d824edeafb1ab6d5a1fb89 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -8,6 +8,7 @@ import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Joiner;
import com.google.common.base.Objects;
import com.google.common.collect.ArrayListMultimap;
+import com.google.common.collect.ImmutableSet;
import com.google.common.collect.LinkedListMultimap;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
@@ -2692,6 +2693,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
String name = method.getName();
if (superMembers != null && !method.isConstructor()) {
Collection<Element> overridden = superMembers.removeAll(name);
+ Elements.setOverridden(method, ImmutableSet.copyOf(overridden));
for (Element element : overridden) {
if (canOverride(node.getName(), method.getModifiers(), element)) {
switch (element.getKind()) {

Powered by Google App Engine
This is Rietveld 408576698