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

Unified Diff: dart/frog/leg/elements/elements.dart

Issue 9815003: Implement unresolved super-send (but ignoring arguments). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Triaged Created 8 years, 9 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
« no previous file with comments | « no previous file | dart/frog/leg/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/elements/elements.dart
diff --git a/dart/frog/leg/elements/elements.dart b/dart/frog/leg/elements/elements.dart
index b226a42bd73afdd5e369b0b7eb494649999d7bc3..3d17f19db5d40200fcb5a146d01313ff9488fd9d 100644
--- a/dart/frog/leg/elements/elements.dart
+++ b/dart/frog/leg/elements/elements.dart
@@ -171,6 +171,13 @@ class Element implements Hashable {
return element;
}
+ ClassElement getEnclosingClass() {
+ for (Element e = this; e !== null; e = e.enclosingElement) {
+ if (e.kind === ElementKind.CLASS) return e;
+ }
+ return null;
+ }
+
toString() => '$kind(${name.slowToString()})';
bool _isNative = false;
« no previous file with comments | « no previous file | dart/frog/leg/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698