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

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

Issue 2898403002: Use failedAt in more places (Closed)
Patch Set: merge; address comments 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 | « pkg/compiler/lib/src/io/position_information.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/io/source_information.dart
diff --git a/pkg/compiler/lib/src/io/source_information.dart b/pkg/compiler/lib/src/io/source_information.dart
index f2b6f64ed8b45d48eda27e8f82dc2380482e841b..e6403bf7978f6fab0aebaea506a65fbea68a37a2 100644
--- a/pkg/compiler/lib/src/io/source_information.dart
+++ b/pkg/compiler/lib/src/io/source_information.dart
@@ -200,8 +200,11 @@ abstract class AbstractSourceLocation extends SourceLocation {
Location _location;
AbstractSourceLocation(this._sourceFile) {
- assert(invariant(new SourceSpan(sourceUri, 0, 0), isValid,
- message: "Invalid source location in ${sourceUri}: "
+ assert(
+ isValid,
+ failedAt(
+ new SourceSpan(sourceUri, 0, 0),
+ "Invalid source location in ${sourceUri}: "
"offset=$offset, length=${_sourceFile.length}."));
}
« no previous file with comments | « pkg/compiler/lib/src/io/position_information.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698