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

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

Issue 2917653002: 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') | pkg/compiler/lib/src/world.dart » ('j') | 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 506e2fc097078501c28924b1cf4a6b6c9ecd465f..cfcf0a73ffb1e8166fe8d389965771a88f6048df 100644
--- a/pkg/compiler/lib/src/resolution/tree_elements.dart
+++ b/pkg/compiler/lib/src/resolution/tree_elements.dart
@@ -140,10 +140,10 @@ class TreeElementMapping extends TreeElements {
return true;
}, failedAt(node));
// TODO(ahe): Investigate why the invariant below doesn't hold.
- // assert(invariant(node,
- // getTreeElement(node) == element ||
- // getTreeElement(node) == null,
- // message: '${getTreeElement(node)}; $element'));
+ // assert(
+ // getTreeElement(node) == element ||
+ // getTreeElement(node) == null,
+ // failedAt(node, '${getTreeElement(node)}; $element'));
setTreeElement(node, element);
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/signatures.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698