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

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

Issue 11316019: Move ParameterKind so it can be used in the element model (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 14967)
+++ editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/visitor/ToSourceVisitor.java (working copy)
@@ -15,6 +15,7 @@
import com.google.dart.engine.ast.*;
import com.google.dart.engine.scanner.Token;
+import com.google.dart.engine.utilities.dart.ParameterKind;
import java.io.PrintWriter;
@@ -344,7 +345,7 @@
writer.print(", ");
}
if (groupEnd == null && parameter instanceof DefaultFormalParameter) {
- if (parameter.getKind() == FormalParameter.ParameterKind.NAMED) {
+ if (parameter.getKind() == ParameterKind.NAMED) {
groupEnd = "}";
writer.print('{');
} else {

Powered by Google App Engine
This is Rietveld 408576698