| Index: pkg/compiler/lib/src/resolution/tree_elements.dart
|
| diff --git a/pkg/compiler/lib/src/resolution/tree_elements.dart b/pkg/compiler/lib/src/resolution/tree_elements.dart
|
| index 8d3071c8f4522a1092383661c79f3b6751f09ed6..6d4f366983b17906f31cc67c07f20990a2e13834 100644
|
| --- a/pkg/compiler/lib/src/resolution/tree_elements.dart
|
| +++ b/pkg/compiler/lib/src/resolution/tree_elements.dart
|
| @@ -149,7 +149,7 @@ class TreeElementMapping extends TreeElements {
|
| // TODO(johnniwinther): Simplify this invariant to use only declarations in
|
| // [TreeElements].
|
| assert(invariant(node, () {
|
| - if (!element.isErroneous && analyzedElement != null && element.isPatch) {
|
| + if (!element.isMalformed && analyzedElement != null && element.isPatch) {
|
| return analyzedElement.implementationLibrary.isPatch;
|
| }
|
| return true;
|
|
|