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 fbdc8ca869b2c28100bb168594afdfa5b2fb45bf..8bcdf42104cdde1f9caf0af01954af1de6ddf854 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() |