Chromium Code Reviews| Index: pkg/compiler/lib/src/resolution/resolution_common.dart |
| diff --git a/pkg/compiler/lib/src/resolution/resolution_common.dart b/pkg/compiler/lib/src/resolution/resolution_common.dart |
| index 5d3efcb717ec50ad0a56ccbf22a4ec89193afb79..9e16c28725ef7a073806e6338316108d85002886 100644 |
| --- a/pkg/compiler/lib/src/resolution/resolution_common.dart |
| +++ b/pkg/compiler/lib/src/resolution/resolution_common.dart |
| @@ -13,7 +13,12 @@ class ResolverTask extends CompilerTask { |
| WorldImpact resolve(Element element) { |
| return measure(() { |
| - if (Elements.isErroneous(element)) return null; |
| + if (Elements.isErroneous(element)) { |
| + assert(invariant(element, element is! ErroneousElement, |
|
karlklose
2015/06/12 07:01:03
Do we have a predicate to test that instead of an
Johnni Winther
2015/06/12 07:50:30
Done.
|
| + message: "Element $element expected to have parse errors.")); |
| + _ensureTreeElements(element); |
| + return const WorldImpact(); |
| + } |
| WorldImpact processMetadata([WorldImpact result]) { |
| for (MetadataAnnotation metadata in element.metadata) { |