Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ToSourceVisitor.java |
=================================================================== |
--- editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ToSourceVisitor.java (revision 15397) |
+++ editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ToSourceVisitor.java (working copy) |
@@ -209,11 +209,13 @@ |
@Override |
public Void visitConstructorDeclaration(ConstructorDeclaration node) { |
visit(node.getExternalKeyword(), " "); |
- visit(node.getKeyword(), " "); |
+ visit(node.getConstKeyword(), " "); |
+ visit(node.getFactoryKeyword(), " "); |
visit(node.getReturnType()); |
visit(".", node.getName()); |
visit(node.getParameters()); |
visitList(" : ", node.getInitializers(), ", "); |
+ visit(" = ", node.getRedirectedConstructor()); |
visit(" ", node.getBody()); |
return null; |
} |
@@ -228,6 +230,13 @@ |
} |
@Override |
+ public Void visitConstructorName(ConstructorName node) { |
+ visit(node.getType()); |
+ visit(".", node.getName()); |
+ return null; |
+ } |
+ |
+ @Override |
public Void visitContinueStatement(ContinueStatement node) { |
writer.print("continue"); |
visit(" ", node.getLabel()); |
@@ -469,8 +478,7 @@ |
@Override |
public Void visitInstanceCreationExpression(InstanceCreationExpression node) { |
visit(node.getKeyword(), " "); |
- visit(node.getType()); |
- visit(".", node.getIdentifier()); |
+ visit(node.getConstructorName()); |
visit(node.getArgumentList()); |
return null; |
} |