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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartFunctionTypeAlias.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/DartFunctionTypeAlias.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartFunctionTypeAlias.java b/compiler/java/com/google/dart/compiler/ast/DartFunctionTypeAlias.java
index 36cce56a57a1414a64e7cb6f81864b0cc3e26c46..94c8f45d50a56f633ff520b8c275297709d6aa30 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartFunctionTypeAlias.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartFunctionTypeAlias.java
@@ -4,8 +4,7 @@
package com.google.dart.compiler.ast;
-import com.google.dart.compiler.common.HasSymbol;
-import com.google.dart.compiler.common.Symbol;
+import com.google.dart.compiler.resolver.Element;
import com.google.dart.compiler.resolver.FunctionAliasElement;
import java.util.List;
@@ -13,7 +12,7 @@ import java.util.List;
/**
* Named function-type alias AST node.
*/
-public class DartFunctionTypeAlias extends DartDeclaration<DartIdentifier> implements HasSymbol {
+public class DartFunctionTypeAlias extends DartDeclaration<DartIdentifier> {
private DartTypeNode returnTypeNode;
private final NodeList<DartParameter> parameters = NodeList.create(this);
@@ -42,7 +41,7 @@ public class DartFunctionTypeAlias extends DartDeclaration<DartIdentifier> imple
}
@Override
- public FunctionAliasElement getSymbol() {
+ public FunctionAliasElement getElement() {
return element;
}
@@ -51,8 +50,8 @@ public class DartFunctionTypeAlias extends DartDeclaration<DartIdentifier> imple
}
@Override
- public void setSymbol(Symbol symbol) {
- element = (FunctionAliasElement) symbol;
+ public void setElement(Element element) {
+ this.element = (FunctionAliasElement) element;
}
@Override

Powered by Google App Engine
This is Rietveld 408576698