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

Unified Diff: pkg/compiler/lib/src/elements/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 | « no previous file | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index 2557a03400ae751a2bbcf868f809959d223ed5b0..7c7f01b0fae911945ed010d90149ed220d632ebf 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -882,8 +882,11 @@ class Elements {
ConstructorElement callee,
T compileArgument(ParameterElement element),
T compileConstant(ParameterElement element)) {
- assert(invariant(caller, !callee.isMalformed,
- message: "Cannot compute arguments to malformed constructor: "
+ assert(
+ !callee.isMalformed,
+ failedAt(
+ caller,
+ "Cannot compute arguments to malformed constructor: "
"$caller calling $callee."));
FunctionSignature signature = caller.functionSignature;
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/element_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698