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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 12082024: Use named arguments for messages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 11 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: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
index ea44f141650ea26d02466e3b20a41a8c0a914a85..322fddce37b30468305e07f9e2d0d911e32f3023 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
@@ -1627,7 +1627,9 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
SourceFileLocation location = new SourceFileLocation(sourceFile, token);
if (!location.isValid()) {
throw MessageKind.INVALID_SOURCE_FILE_LOCATION.message(
- [token.charOffset, sourceFile.filename, sourceFile.text.length]);
+ {'offset': token.charOffset,
+ 'fileName': sourceFile.filename,
+ 'length': sourceFile.text.length});
}
return location;
}

Powered by Google App Engine
This is Rietveld 408576698