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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartLabel.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/DartLabel.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartLabel.java b/compiler/java/com/google/dart/compiler/ast/DartLabel.java
index 0d53d9287abcc8f5b3b40085aa5cc3ed73438b1d..3a3fe67770c3b02a1bc20578ec9aa257707e00e8 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartLabel.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartLabel.java
@@ -4,19 +4,19 @@
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.LabelElement;
/**
* Represents a Dart statement label.
*/
-public class DartLabel extends DartStatement implements HasSymbol {
+public class DartLabel extends DartStatement {
// Not visited. Similar to DartDeclaration, but DartDeclaration shouldn't be
// a statement or an expression.
private DartIdentifier label;
- private Symbol symbol;
+ private LabelElement element;
private DartStatement statement;
@@ -30,7 +30,7 @@ public class DartLabel extends DartStatement implements HasSymbol {
}
public String getName() {
- return label.getTargetName();
+ return label.getName();
}
public DartStatement getStatement() {
@@ -38,8 +38,8 @@ public class DartLabel extends DartStatement implements HasSymbol {
}
@Override
- public Symbol getSymbol() {
- return symbol;
+ public LabelElement getElement() {
+ return element;
}
public void setLabel(DartIdentifier newLabel) {
@@ -47,8 +47,8 @@ public class DartLabel extends DartStatement implements HasSymbol {
}
@Override
- public void setSymbol(Symbol symbol) {
- this.symbol = symbol;
+ public void setElement(Element element) {
+ this.element = (LabelElement) element;
}
@Override

Powered by Google App Engine
This is Rietveld 408576698