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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Element.java

Issue 8479037: Provide enclosing element (method) for local function object, issue 145 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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/Element.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Element.java b/compiler/java/com/google/dart/compiler/resolver/Element.java
index fdab892417e55e2718ebe850ed0d88da7b42c053..762c66aec587361af998aae5332f5acae5edc96b 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Element.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Element.java
@@ -22,5 +22,10 @@ public interface Element extends Symbol {
Modifiers getModifiers();
+ /**
+ * Returns the innermost {@link EnclosingElement} for class or interface which declares this
+ * element. Because method is now not an {@link EnclosingElement}, its enclosing class is returned
zundel 2011/11/07 19:26:53 but in this patch, you modify MethodElement so it
+ * instead.
+ */
EnclosingElement getEnclosingElement();
}

Powered by Google App Engine
This is Rietveld 408576698