| 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;
|
|
|