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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartUnit.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/java/com/google/dart/compiler/ast/DartUnit.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartUnit.java b/compiler/java/com/google/dart/compiler/ast/DartUnit.java
index fabd1aca4629bf334c789b6add249d1c81b4d4ac..af33c6d6adbdccfc5ed5a23628845c16dc6b4b3b 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartUnit.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartUnit.java
@@ -88,23 +88,23 @@ public class DartUnit extends DartNode {
for (DartNode node : getTopLevelNodes()) {
if (node instanceof DartClass) {
DartIdentifier name = ((DartClass) node).getName();
- topLevelSymbols.add(name.getTargetName());
+ topLevelSymbols.add(name.getName());
}
if (node instanceof DartFunctionTypeAlias) {
DartIdentifier name = ((DartFunctionTypeAlias) node).getName();
- topLevelSymbols.add(name.getTargetName());
+ topLevelSymbols.add(name.getName());
}
if (node instanceof DartMethodDefinition) {
DartExpression name = ((DartMethodDefinition) node).getName();
if (name instanceof DartIdentifier) {
- topLevelSymbols.add(((DartIdentifier) name).getTargetName());
+ topLevelSymbols.add(((DartIdentifier) name).getName());
}
}
if (node instanceof DartFieldDefinition) {
DartFieldDefinition fieldDefinition = (DartFieldDefinition) node;
List<DartField> fields = fieldDefinition.getFields();
for (DartField variable : fields) {
- topLevelSymbols.add(variable.getName().getTargetName());
+ topLevelSymbols.add(variable.getName().getName());
}
}
}
@@ -119,7 +119,7 @@ public class DartUnit extends DartNode {
accept(new ASTVisitor<Void>() {
@Override
public Void visitFunctionTypeAlias(DartFunctionTypeAlias node) {
- symbols.add(node.getName().getTargetName());
+ symbols.add(node.getName().getName());
return super.visitFunctionTypeAlias(node);
}
@@ -131,20 +131,20 @@ public class DartUnit extends DartNode {
@Override
public Void visitTypeParameter(DartTypeParameter node) {
- symbols.add(node.getName().getTargetName());
+ symbols.add(node.getName().getName());
return super.visitTypeParameter(node);
}
@Override
public Void visitField(DartField node) {
- symbols.add(node.getName().getTargetName());
+ symbols.add(node.getName().getName());
return super.visitField(node);
}
@Override
public Void visitMethodDefinition(DartMethodDefinition node) {
if (node.getName() instanceof DartIdentifier) {
- symbols.add(((DartIdentifier) node.getName()).getTargetName());
+ symbols.add(((DartIdentifier) node.getName()).getName());
}
return super.visitMethodDefinition(node);
}

Powered by Google App Engine
This is Rietveld 408576698