Index: dart/lib/compiler/implementation/compiler.dart |
diff --git a/dart/lib/compiler/implementation/compiler.dart b/dart/lib/compiler/implementation/compiler.dart |
index b3f16992d4ebd9665157b472f113375c047ec38c..581e96d27e9e590a1a65ed49a7a0e3230485e1c8 100644 |
--- a/dart/lib/compiler/implementation/compiler.dart |
+++ b/dart/lib/compiler/implementation/compiler.dart |
@@ -432,7 +432,7 @@ class Compiler implements DiagnosticListener { |
/** |
* Perform various checks of the queues. This includes checking that |
* the queues are empty (nothing was added after we stopped |
- * processing the quese). Also compute the number of methods that |
+ * processing the queues). Also compute the number of methods that |
* were resolved, but not compiled (aka excess resolution). |
*/ |
checkQueues() { |
@@ -478,12 +478,12 @@ class Compiler implements DiagnosticListener { |
TreeElements analyzeElement(Element element) { |
TreeElements elements = enqueuer.resolution.getCachedElements(element); |
if (elements !== null) return elements; |
- if (element is AbstractFieldElement) { |
- return null; |
- } |
final int allowed = ElementCategory.VARIABLE | ElementCategory.FUNCTION |
| ElementCategory.FACTORY; |
- if (!element.isAccessor() && (element.kind.category & allowed) == 0) { |
+ ElementKind kind = element.kind; |
+ if (!element.isAccessor() && |
+ ((kind === ElementKind.ABSTRACT_FIELD) || |
+ (kind.category & allowed) == 0)) { |
return null; |
} |
assert(parser !== null); |