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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ElementKind.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/resolver/ElementKind.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ElementKind.java b/compiler/java/com/google/dart/compiler/resolver/ElementKind.java
index 1c8d89ddf7d7031aca586eb7d4100cbaf5049efe..c23397dfeb2ad39a851c6b153773e9cbdb0b7e52 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ElementKind.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ElementKind.java
@@ -4,7 +4,6 @@
package com.google.dart.compiler.resolver;
-import com.google.dart.compiler.common.Symbol;
/**
* Kinds of elements. Use kinds instead of instanceof for maximum flexibility
@@ -27,9 +26,8 @@ public enum ElementKind {
NONE,
VOID;
- public static ElementKind of(Symbol symbol) {
- if (symbol instanceof Element) {
- Element element = (Element) symbol;
+ public static ElementKind of(Element element) {
+ if (element != null) {
return element.getKind();
} else {
return NONE;

Powered by Google App Engine
This is Rietveld 408576698