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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java

Issue 9633009: Use Element instead of Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
index cccae21c6b023049c04c2c0c80da4c9b173d1a10..d1bdd9876be2c38a630c853013998770e1ca916a 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
@@ -133,31 +133,31 @@ public class SyntaxTest extends AbstractParserTest {
DartTryStatement tryCatch;
DartMethodDefinition a = (DartMethodDefinition) nodes.get(2);
- assertEquals("a", ((DartIdentifier)a.getName()).getTargetName());
+ assertEquals("a", ((DartIdentifier)a.getName()).getName());
tryCatch = (DartTryStatement) a.getFunction().getBody().getStatements().get(0);
assertEquals(1, tryCatch.getCatchBlocks().size());
assertNotNull(tryCatch.getFinallyBlock());
DartMethodDefinition b = (DartMethodDefinition) nodes.get(3);
- assertEquals("b", ((DartIdentifier)b.getName()).getTargetName());
+ assertEquals("b", ((DartIdentifier)b.getName()).getName());
tryCatch = (DartTryStatement) b.getFunction().getBody().getStatements().get(0);
assertEquals(1, tryCatch.getCatchBlocks().size());
assertNull(tryCatch.getFinallyBlock());
DartMethodDefinition c = (DartMethodDefinition) nodes.get(4);
- assertEquals("c", ((DartIdentifier)c.getName()).getTargetName());
+ assertEquals("c", ((DartIdentifier)c.getName()).getName());
tryCatch = (DartTryStatement) c.getFunction().getBody().getStatements().get(0);
assertEquals(0, tryCatch.getCatchBlocks().size());
assertNotNull(tryCatch.getFinallyBlock());
DartMethodDefinition d = (DartMethodDefinition) nodes.get(5);
- assertEquals("d", ((DartIdentifier)d.getName()).getTargetName());
+ assertEquals("d", ((DartIdentifier)d.getName()).getName());
tryCatch = (DartTryStatement) d.getFunction().getBody().getStatements().get(0);
assertEquals(2, tryCatch.getCatchBlocks().size());
assertNull(tryCatch.getFinallyBlock());
DartMethodDefinition e = (DartMethodDefinition) nodes.get(6);
- assertEquals("e", ((DartIdentifier)e.getName()).getTargetName());
+ assertEquals("e", ((DartIdentifier)e.getName()).getName());
tryCatch = (DartTryStatement) e.getFunction().getBody().getStatements().get(0);
assertEquals(2, tryCatch.getCatchBlocks().size());
assertNotNull(tryCatch.getFinallyBlock());

Powered by Google App Engine
This is Rietveld 408576698