Chromium Code Reviews| Index: compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java |
| =================================================================== |
| --- compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java (revision 305) |
| +++ compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java (working copy) |
| @@ -412,10 +412,11 @@ |
| } |
| } |
| - rtt.generateRuntimeTypeInfo(x); |
| maybeInjectIsolateMethods(classElement); |
| if (classElement.isInterface()) { |
| + rtt.generateRuntimeTypeInfo(x); |
| + |
| // Emit only static final fields for interfaces. |
| for (Element member : classElement.getMembers()) { |
| if (ElementKind.of(member).equals(ElementKind.FIELD)) { |
| @@ -437,6 +438,8 @@ |
| inherits.setSourceRef(x); |
| globalBlock.getStatements().add(inherits.makeStmt()); |
| } |
| + |
|
pdr
2011/10/10 22:56:34
Extra spaces
John Lenz
2011/10/10 23:21:08
Done.
|
| + rtt.generateRuntimeTypeInfo(x); |
| List<Element> classMembers = new ArrayList<Element>(); |
| classMembers.addAll(classElement.getConstructors()); |
| @@ -471,7 +474,7 @@ |
| throw new AssertionError("Invalid member " + member); |
| } |
| } |
| - |
| + |
|
pdr
2011/10/10 22:56:34
Extra spaces
John Lenz
2011/10/10 23:21:08
Done.
|
| // TODO(johnlenz): should we create a stub method to catch |
| // class without const constructors? As is, the a non-const |
| // class with get the id of an "const Object". |