Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: pkg/compiler/lib/src/resolution/tree_elements.dart

Issue 2905463003: Use failedAt in more places (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/signatures.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ||
« no previous file with comments | « pkg/compiler/lib/src/resolution/signatures.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698