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

Unified Diff: pkg/compiler/lib/src/inferrer/type_system.dart

Issue 2898403002: Use failedAt in more places (Closed)
Patch Set: merge; address comments 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
Index: pkg/compiler/lib/src/inferrer/type_system.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_system.dart b/pkg/compiler/lib/src/inferrer/type_system.dart
index 49af29e6dd476831839c1c6af176023514369c8f..b6d34798cbd70ad26a595981c0280c304a0a7965 100644
--- a/pkg/compiler/lib/src/inferrer/type_system.dart
+++ b/pkg/compiler/lib/src/inferrer/type_system.dart
@@ -68,8 +68,8 @@ class TypeSystem {
MemberTypeInformation get currentMember => _currentMember;
void withMember(MemberElement element, action) {
- assert(invariant(element, _currentMember == null,
- message: "Already constructing graph for $_currentMember."));
+ assert(_currentMember == null,
+ failedAt(element, "Already constructing graph for $_currentMember."));
_currentMember = getInferredTypeOf(element);
action();
_currentMember = null;
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_engine.dart ('k') | pkg/compiler/lib/src/io/position_information.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698