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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.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/resolver/MethodElementImplementation.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java b/compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java
index 6488de655af668df3cc042aed2b1b9307f81c0d0..220fc8f6cc334852c3c4217ef116364b2fe0cfc1 100644
--- a/compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java
+++ b/compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java
@@ -5,6 +5,7 @@
package com.google.dart.compiler.resolver;
import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableSet;
import com.google.dart.compiler.ast.DartBlock;
import com.google.dart.compiler.ast.DartFunctionExpression;
import com.google.dart.compiler.ast.DartIdentifier;
@@ -19,6 +20,7 @@ import com.google.dart.compiler.type.Type;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
+import java.util.Set;
class MethodElementImplementation extends AbstractNodeElement implements MethodNodeElement {
private final Modifiers modifiers;
@@ -28,6 +30,7 @@ class MethodElementImplementation extends AbstractNodeElement implements MethodN
private FunctionType type;
private final SourceInfo nameLocation;
private final boolean hasBody;
+ private Set<Element> overridden = ImmutableSet.of();
// TODO(ngeoffray): name, return type, argument types.
@VisibleForTesting
@@ -170,4 +173,12 @@ class MethodElementImplementation extends AbstractNodeElement implements MethodN
public SourceInfo getNameLocation() {
return nameLocation;
}
+
+ public void setOverridden(Set<Element> overridden) {
+ this.overridden = overridden;
+ }
+
+ public Set<Element> getOverridden() {
+ return overridden;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698