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

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

Issue 26466005: Support for parsing 'class name = mixinApplication', report error for 'typedef name = mixinApplicat… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for review comments. Created 7 years, 2 months 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/visitor/ToSourceVisitorTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/ToSourceVisitorTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/ToSourceVisitorTest.java
index 3a798c8f925270a546992cc8398df119662991d0..66e4239f3b083dfabcb1a719f49ede89058e3e2b 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/ToSourceVisitorTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/ToSourceVisitorTest.java
@@ -288,13 +288,13 @@ public class ToSourceVisitorTest extends EngineTestCase {
public void test_visitClassTypeAlias_abstract() {
assertSource(
- "typedef C = abstract S with M1;",
+ "class C = abstract S with M1;",
classTypeAlias("C", null, Keyword.ABSTRACT, typeName("S"), withClause(typeName("M1")), null));
}
public void test_visitClassTypeAlias_abstract_implements() {
assertSource(
- "typedef C = abstract S with M1 implements I;",
+ "class C = abstract S with M1 implements I;",
classTypeAlias(
"C",
null,
@@ -306,7 +306,7 @@ public class ToSourceVisitorTest extends EngineTestCase {
public void test_visitClassTypeAlias_generic() {
assertSource(
- "typedef C<E> = S<E> with M1<E>;",
+ "class C<E> = S<E> with M1<E>;",
classTypeAlias(
"C",
typeParameterList("E"),
@@ -318,7 +318,7 @@ public class ToSourceVisitorTest extends EngineTestCase {
public void test_visitClassTypeAlias_implements() {
assertSource(
- "typedef C = S with M1 implements I;",
+ "class C = S with M1 implements I;",
classTypeAlias(
"C",
null,
@@ -330,13 +330,13 @@ public class ToSourceVisitorTest extends EngineTestCase {
public void test_visitClassTypeAlias_minimal() {
assertSource(
- "typedef C = S with M1;",
+ "class C = S with M1;",
classTypeAlias("C", null, null, typeName("S"), withClause(typeName("M1")), null));
}
public void test_visitClassTypeAlias_parameters_abstract() {
assertSource(
- "typedef C<E> = abstract S with M1;",
+ "class C<E> = abstract S with M1;",
classTypeAlias(
"C",
typeParameterList("E"),
@@ -348,7 +348,7 @@ public class ToSourceVisitorTest extends EngineTestCase {
public void test_visitClassTypeAlias_parameters_abstract_implements() {
assertSource(
- "typedef C<E> = abstract S with M1 implements I;",
+ "class C<E> = abstract S with M1 implements I;",
classTypeAlias(
"C",
typeParameterList("E"),
@@ -360,7 +360,7 @@ public class ToSourceVisitorTest extends EngineTestCase {
public void test_visitClassTypeAlias_parameters_implements() {
assertSource(
- "typedef C<E> = S with M1 implements I;",
+ "class C<E> = S with M1 implements I;",
classTypeAlias(
"C",
typeParameterList("E"),

Powered by Google App Engine
This is Rietveld 408576698