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

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

Issue 679873002: Clone tokens when cloning ASTs for constants (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/utilities/ast/AstClonerTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/utilities/ast/AstClonerTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/utilities/ast/AstClonerTest.java
index f5ac447759cc1c4c2545c5d306707bc462dc70e1..ce151c50da16c13fc296756a5453401f51b20fd1 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/utilities/ast/AstClonerTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/utilities/ast/AstClonerTest.java
@@ -76,6 +76,10 @@ public class AstClonerTest extends EngineTestCase {
assertClone(assignmentExpression(identifier("a"), TokenType.EQ, identifier("b")));
}
+ public void test_visitAwaitExpression() {
+ assertClone(awaitExpression(identifier("a")));
+ }
+
public void test_visitBinaryExpression() {
assertClone(binaryExpression(identifier("a"), TokenType.PLUS, identifier("b")));
}
@@ -1521,6 +1525,10 @@ public class AstClonerTest extends EngineTestCase {
assertClone(withClause(typeName("A")));
}
+ public void test_visitYieldStatement() {
+ assertClone(yieldStatement(identifier("A")));
+ }
+
/**
* Assert that an {@code AstCloner} will produce the expected ASt structure when visiting the
* given node.

Powered by Google App Engine
This is Rietveld 408576698