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

Unified Diff: pkg/compiler/lib/src/io/position_information.dart

Issue 2898403002: 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
Index: pkg/compiler/lib/src/io/position_information.dart
diff --git a/pkg/compiler/lib/src/io/position_information.dart b/pkg/compiler/lib/src/io/position_information.dart
index 0c94faa51f68dd0cb6447d8b03a84e63282ed5cb..d9910fbdf0fb327c907c3834897451b0405cb313 100644
--- a/pkg/compiler/lib/src/io/position_information.dart
+++ b/pkg/compiler/lib/src/io/position_information.dart
@@ -653,8 +653,11 @@ class CallPosition {
return new CallPosition(
node.target, CodePositionKind.END, SourcePositionKind.INNER);
} else {
- assert(invariant(NO_LOCATION_SPANNABLE, false,
- message: "Unexpected property access ${nodeToString(node)}:\n"
+ assert(
Johnni Winther 2017/05/24 08:24:52 Add a TODO for me to maybe remove this assertion.
sra1 2017/05/24 17:38:54 Done.
+ false,
+ failedAt(
+ NO_LOCATION_SPANNABLE,
+ "Unexpected property access ${nodeToString(node)}:\n"
"${DebugPrinter.prettyPrint(node)}"));
// Don't know....
return new CallPosition(

Powered by Google App Engine
This is Rietveld 408576698