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 df32daae87c6af4a3987d238adde8314b7c796db..506e2fc097078501c28924b1cf4a6b6c9ecd465f 100644 |
--- a/pkg/compiler/lib/src/resolution/tree_elements.dart |
+++ b/pkg/compiler/lib/src/resolution/tree_elements.dart |
@@ -133,12 +133,12 @@ class TreeElementMapping extends TreeElements { |
operator []=(Node node, Element element) { |
// TODO(johnniwinther): Simplify this invariant to use only declarations in |
// [TreeElements]. |
- assert(invariant(node, () { |
+ assert(() { |
if (!element.isMalformed && analyzedElement != null && element.isPatch) { |
return analyzedElement.implementationLibrary.isPatch; |
} |
return true; |
- })); |
+ }, failedAt(node)); |
// TODO(ahe): Investigate why the invariant below doesn't hold. |
// assert(invariant(node, |
// getTreeElement(node) == element || |