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

Unified Diff: compiler/java/com/google/dart/compiler/backend/js/JsNameProvider.java

Issue 8479049: Allow for instance checking of methods and function aliases. (Closed) Base URL: http://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/JsNameProvider.java
diff --git a/compiler/java/com/google/dart/compiler/backend/js/JsNameProvider.java b/compiler/java/com/google/dart/compiler/backend/js/JsNameProvider.java
index 8857ee978e02ca58915b50ee0bb746e9cc339bc2..e7ee0243d7da7af19ff2accbfe1d20906d988eb0 100644
--- a/compiler/java/com/google/dart/compiler/backend/js/JsNameProvider.java
+++ b/compiler/java/com/google/dart/compiler/backend/js/JsNameProvider.java
@@ -61,9 +61,9 @@ class JsNameProvider {
assert !jsName.getShortIdent().equals("Object$Dart");
return jsName;
}
- assert ElementKind.of(symbol).equals(ElementKind.CLASS)
- : "Only classes can be lazily declared. Undeclared: "
- + symbol.getOriginalSymbolName();
+// assert ElementKind.of(symbol).equals(ElementKind.CLASS)
zundel 2011/11/08 15:28:42 Are you now allowing FUNCTION kind through? Maybe
codefu 2011/11/14 19:33:40 Done.
+// : "Only classes can be lazily declared. Undeclared: "
+// + symbol.getOriginalSymbolName();
ClassElement classElement = (ClassElement) symbol;
String name = classElement.getName();
String nativeName = classElement.getNativeName();

Powered by Google App Engine
This is Rietveld 408576698