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

Unified Diff: pkg/compiler/lib/src/universe/resolution_world_builder.dart

Issue 2900263002: Use failedAt in more places (constants, universe) (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
Index: pkg/compiler/lib/src/universe/resolution_world_builder.dart
diff --git a/pkg/compiler/lib/src/universe/resolution_world_builder.dart b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
index 3000e38ddca200d3f4b71f4cf46adcf67a5b6d52..4573a9106a8ff70516f6873488ac3cac4351b119 100644
--- a/pkg/compiler/lib/src/universe/resolution_world_builder.dart
+++ b/pkg/compiler/lib/src/universe/resolution_world_builder.dart
@@ -630,8 +630,7 @@ abstract class ResolutionWorldBuilderBase
useSet.addAll(usage.normalUse());
break;
case StaticUseKind.DIRECT_INVOKE:
- invariant(
- element, 'Direct static use is not supported for resolution.');
+ failedAt(element, 'Direct static use is not supported for resolution.');
Siggi Cherem (dart-lang) 2017/05/24 16:03:29 odd that here was invariant and the line below was
break;
case StaticUseKind.INLINING:
throw new SpannableAssertionFailure(CURRENT_ELEMENT_SPANNABLE,
« no previous file with comments | « pkg/compiler/lib/src/universe/element_world_builder.dart ('k') | pkg/compiler/lib/src/universe/selector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698