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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ToSourceVisitor.java

Issue 11415153: Parser work (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698