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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.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/parser/SimpleParserTest.java
===================================================================
--- editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java (revision 14967)
+++ editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java (working copy)
@@ -50,7 +50,6 @@
import com.google.dart.engine.ast.FieldFormalParameter;
import com.google.dart.engine.ast.ForEachStatement;
import com.google.dart.engine.ast.ForStatement;
-import com.google.dart.engine.ast.FormalParameter;
import com.google.dart.engine.ast.FormalParameterList;
import com.google.dart.engine.ast.FunctionDeclaration;
import com.google.dart.engine.ast.FunctionDeclarationStatement;
@@ -123,6 +122,7 @@
import com.google.dart.engine.scanner.StringToken;
import com.google.dart.engine.scanner.Token;
import com.google.dart.engine.scanner.TokenType;
+import com.google.dart.engine.utilities.dart.ParameterKind;
import junit.framework.AssertionFailedError;
@@ -2040,10 +2040,10 @@
}
public void test_parseFormalParameter_final_withType_named() throws Exception {
- FormalParameter.ParameterKind kind = FormalParameter.ParameterKind.NAMED;
+ ParameterKind kind = ParameterKind.NAMED;
DefaultFormalParameter parameter = parse(
"parseFormalParameter",
- new Class[] {FormalParameter.ParameterKind.class},
+ new Class[] {ParameterKind.class},
new Object[] {kind},
"final A a : null");
SimpleFormalParameter simpleParameter = (SimpleFormalParameter) parameter.getParameter();
@@ -2057,10 +2057,10 @@
}
public void test_parseFormalParameter_final_withType_normal() throws Exception {
- FormalParameter.ParameterKind kind = FormalParameter.ParameterKind.REQUIRED;
+ ParameterKind kind = ParameterKind.REQUIRED;
SimpleFormalParameter parameter = parse(
"parseFormalParameter",
- new Class[] {FormalParameter.ParameterKind.class},
+ new Class[] {ParameterKind.class},
new Object[] {kind},
"final A a");
assertNotNull(parameter.getIdentifier());
@@ -2070,10 +2070,10 @@
}
public void test_parseFormalParameter_final_withType_positional() throws Exception {
- FormalParameter.ParameterKind kind = FormalParameter.ParameterKind.POSITIONAL;
+ ParameterKind kind = ParameterKind.POSITIONAL;
DefaultFormalParameter parameter = parse(
"parseFormalParameter",
- new Class[] {FormalParameter.ParameterKind.class},
+ new Class[] {ParameterKind.class},
new Object[] {kind},
"final A a = null");
SimpleFormalParameter simpleParameter = (SimpleFormalParameter) parameter.getParameter();
@@ -2087,10 +2087,10 @@
}
public void test_parseFormalParameter_nonFinal_withType_named() throws Exception {
- FormalParameter.ParameterKind kind = FormalParameter.ParameterKind.NAMED;
+ ParameterKind kind = ParameterKind.NAMED;
DefaultFormalParameter parameter = parse(
"parseFormalParameter",
- new Class[] {FormalParameter.ParameterKind.class},
+ new Class[] {ParameterKind.class},
new Object[] {kind},
"A a : null");
SimpleFormalParameter simpleParameter = (SimpleFormalParameter) parameter.getParameter();
@@ -2104,10 +2104,10 @@
}
public void test_parseFormalParameter_nonFinal_withType_normal() throws Exception {
- FormalParameter.ParameterKind kind = FormalParameter.ParameterKind.REQUIRED;
+ ParameterKind kind = ParameterKind.REQUIRED;
SimpleFormalParameter parameter = parse(
"parseFormalParameter",
- new Class[] {FormalParameter.ParameterKind.class},
+ new Class[] {ParameterKind.class},
new Object[] {kind},
"A a");
assertNotNull(parameter.getIdentifier());
@@ -2117,10 +2117,10 @@
}
public void test_parseFormalParameter_nonFinal_withType_positional() throws Exception {
- FormalParameter.ParameterKind kind = FormalParameter.ParameterKind.POSITIONAL;
+ ParameterKind kind = ParameterKind.POSITIONAL;
DefaultFormalParameter parameter = parse(
"parseFormalParameter",
- new Class[] {FormalParameter.ParameterKind.class},
+ new Class[] {ParameterKind.class},
new Object[] {kind},
"A a = null");
SimpleFormalParameter simpleParameter = (SimpleFormalParameter) parameter.getParameter();
@@ -2134,10 +2134,10 @@
}
public void test_parseFormalParameter_var() throws Exception {
- FormalParameter.ParameterKind kind = FormalParameter.ParameterKind.REQUIRED;
+ ParameterKind kind = ParameterKind.REQUIRED;
SimpleFormalParameter parameter = parse(
"parseFormalParameter",
- new Class[] {FormalParameter.ParameterKind.class},
+ new Class[] {ParameterKind.class},
new Object[] {kind},
"var a");
assertNotNull(parameter.getIdentifier());
@@ -2147,10 +2147,10 @@
}
public void test_parseFormalParameter_var_named() throws Exception {
- FormalParameter.ParameterKind kind = FormalParameter.ParameterKind.NAMED;
+ ParameterKind kind = ParameterKind.NAMED;
DefaultFormalParameter parameter = parse(
"parseFormalParameter",
- new Class[] {FormalParameter.ParameterKind.class},
+ new Class[] {ParameterKind.class},
new Object[] {kind},
"var a : null");
SimpleFormalParameter simpleParameter = (SimpleFormalParameter) parameter.getParameter();
@@ -2164,10 +2164,10 @@
}
public void test_parseFormalParameter_var_positional() throws Exception {
- FormalParameter.ParameterKind kind = FormalParameter.ParameterKind.POSITIONAL;
+ ParameterKind kind = ParameterKind.POSITIONAL;
DefaultFormalParameter parameter = parse(
"parseFormalParameter",
- new Class[] {FormalParameter.ParameterKind.class},
+ new Class[] {ParameterKind.class},
new Object[] {kind},
"var a = null");
SimpleFormalParameter simpleParameter = (SimpleFormalParameter) parameter.getParameter();

Powered by Google App Engine
This is Rietveld 408576698