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

Unified Diff: pkg/compiler/lib/src/ssa/locals_handler.dart

Issue 2982783003: Use failedAt in more places (Closed)
Patch Set: Created 3 years, 5 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/ssa/locals_handler.dart
diff --git a/pkg/compiler/lib/src/ssa/locals_handler.dart b/pkg/compiler/lib/src/ssa/locals_handler.dart
index 52e769c7b67b9926bad13a9a31574aaefd81aea5..c2e770d90efb58c3d18f717f5b421a91104359d6 100644
--- a/pkg/compiler/lib/src/ssa/locals_handler.dart
+++ b/pkg/compiler/lib/src/ssa/locals_handler.dart
@@ -323,12 +323,12 @@ class LocalsHandler {
if (isAccessedDirectly(local)) {
if (directLocals[local] == null) {
if (local is TypeVariableLocal) {
- throw new SpannableAssertionFailure(
+ failedAt(
CURRENT_ELEMENT_SPANNABLE,
"Runtime type information not available for $local "
"in $executableContext.");
} else {
- throw new SpannableAssertionFailure(
+ failedAt(
local,
"Cannot find value $local in ${directLocals.keys} for "
"$executableContext.");
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_string_builder.dart ('k') | pkg/compiler/lib/src/ssa/ssa_branch_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698