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

Unified Diff: compiler/java/com/google/dart/compiler/backend/js/Normalizer.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/backend/js/Normalizer.java
diff --git a/compiler/java/com/google/dart/compiler/backend/js/Normalizer.java b/compiler/java/com/google/dart/compiler/backend/js/Normalizer.java
index 49cfada742c67666a1d1ebb68747aaeab81d8140..d34b78d2365ba94c80f3540961a1f804f0f306c3 100644
--- a/compiler/java/com/google/dart/compiler/backend/js/Normalizer.java
+++ b/compiler/java/com/google/dart/compiler/backend/js/Normalizer.java
@@ -682,6 +682,21 @@ public class Normalizer {
public ClassElement getConstructorType() {
return enclosingClass;
}
+
+ @Override
+ public boolean isInterface() {
+ return false;
+ }
+
+ @Override
+ public Iterable<Element> getMembers() {
+ return Collections.emptyList();
+ }
+
+ @Override
+ public Element lookupLocalElement(String name) {
+ return null;
+ }
}
private DartMethodDefinition createImplicitDefaultConstructor(final ClassElement classElement) {

Powered by Google App Engine
This is Rietveld 408576698