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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ASTFactory.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_test/src/com/google/dart/engine/ast/ASTFactory.java
===================================================================
--- editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ASTFactory.java (revision 14967)
+++ editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/ASTFactory.java (working copy)
@@ -15,6 +15,7 @@
import com.google.dart.engine.scanner.Keyword;
import com.google.dart.engine.scanner.TokenType;
+import com.google.dart.engine.utilities.dart.ParameterKind;
import static com.google.dart.engine.scanner.TokenFactory.token;
@@ -658,7 +659,7 @@
Expression expression) {
return new DefaultFormalParameter(
parameter,
- FormalParameter.ParameterKind.NAMED,
+ ParameterKind.NAMED,
expression == null ? null : token(TokenType.COLON),
expression);
}
@@ -706,7 +707,7 @@
Expression expression) {
return new DefaultFormalParameter(
parameter,
- FormalParameter.ParameterKind.POSITIONAL,
+ ParameterKind.POSITIONAL,
expression == null ? null : token(TokenType.EQ),
expression);
}

Powered by Google App Engine
This is Rietveld 408576698