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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.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/type/TypeAnalyzerTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
index be8d8a988c5b75c63910b5a297b3fa936a64abfb..5c78fadb8c470725c90a1cecf6bbb911a5b052a9 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
@@ -238,7 +238,7 @@ public abstract class TypeAnalyzerTestCase extends TypeTestCase {
protected void checkFunctionStatement(String statement, String printString) {
DartExprStmt node = (DartExprStmt) analyze(statement);
DartFunctionExpression expression = (DartFunctionExpression) node.getExpression();
- Element element = expression.getSymbol();
+ Element element = expression.getElement();
FunctionType type = (FunctionType) element.getType();
assertEquals(printString, type.toString());
}
@@ -303,13 +303,13 @@ public abstract class TypeAnalyzerTestCase extends TypeTestCase {
for (DartNode node : unit.getTopLevelNodes()) {
if (node instanceof DartClass) {
DartClass classNode = (DartClass) node;
- final ClassElement classElement = classNode.getSymbol();
+ final ClassElement classElement = classNode.getElement();
String className = classElement.getName();
coreElements.put(className, classElement);
classes.put(className, classElement);
} else {
DartFunctionTypeAlias alias = (DartFunctionTypeAlias) node;
- FunctionAliasElement element = alias.getSymbol();
+ FunctionAliasElement element = alias.getElement();
coreElements.put(element.getName(), element);
}
}

Powered by Google App Engine
This is Rietveld 408576698