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

Unified Diff: pkg/compiler/lib/src/ssa/kernel_impact.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
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | pkg/compiler/lib/src/ssa/kernel_string_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/kernel_impact.dart
diff --git a/pkg/compiler/lib/src/ssa/kernel_impact.dart b/pkg/compiler/lib/src/ssa/kernel_impact.dart
index 9eba59eca88af3ac8c946092dd998f4e9ad31108..a4e2a3018ae137291e33272e0911871d8f604587 100644
--- a/pkg/compiler/lib/src/ssa/kernel_impact.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_impact.dart
@@ -154,7 +154,7 @@ class KernelImpactBuilder extends ir.Visitor {
impactBuilder.registerFeature(Feature.ASYNC_STAR);
break;
case ir.AsyncMarker.SyncYielding:
- throw new SpannableAssertionFailure(CURRENT_ELEMENT_SPANNABLE,
+ failedAt(CURRENT_ELEMENT_SPANNABLE,
"Unexpected async marker: ${asyncMarker}");
}
}
@@ -299,7 +299,7 @@ class KernelImpactBuilder extends ir.Visitor {
ConstantValue value =
elementAdapter.getConstantValue(node.arguments.positional.first);
if (!value.isString) {
- throw new SpannableAssertionFailure(
+ failedAt(
CURRENT_ELEMENT_SPANNABLE,
"Unexpected constant value in const Symbol(...) call: "
"${value.toStructuredText()}");
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | pkg/compiler/lib/src/ssa/kernel_string_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698