Index: sdk/lib/_internal/compiler/implementation/elements/elements.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/sdk/lib/_internal/compiler/implementation/elements/elements.dart |
index 4894e239c4dd3fda1000ecb3689400abefd7d4da..9b8bc89f85c452d41b8ec0c02bb27caa9623cd18 100644 |
--- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart |
+++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart |
@@ -1727,6 +1727,11 @@ class Elements { |
static bool isUnresolved(Element e) => e == null || e.isErroneous(); |
static bool isErroneousElement(Element e) => e != null && e.isErroneous(); |
+ static bool isClass(Element e) => e != null && e.kind == ElementKind.CLASS; |
+ static bool isTypedef(Element e) { |
+ return e != null && e.kind == ElementKind.TYPEDEF; |
+ } |
+ |
static bool isLocal(Element element) { |
return !Elements.isUnresolved(element) |
&& !element.isInstanceMember() |