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

Unified Diff: pkg/analyzer/lib/src/services/formatter_impl.dart

Issue 681003002: Replace ${name} with $name where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean up also implementation Created 6 years, 2 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/analyzer/lib/src/services/formatter_impl.dart
diff --git a/pkg/analyzer/lib/src/services/formatter_impl.dart b/pkg/analyzer/lib/src/services/formatter_impl.dart
index 0c272f17ed1cb5337129b2172696b3a5289b759f..d35bd2b4826e65ba1dac15bcdc5981aabe749edd 100644
--- a/pkg/analyzer/lib/src/services/formatter_impl.dart
+++ b/pkg/analyzer/lib/src/services/formatter_impl.dart
@@ -51,7 +51,7 @@ class FormatterException implements Exception {
//TODO(pquitslund): consider a verbosity flag to add/suppress details
var errorCode = errors[0].errorCode;
var phase = errorCode is ParserErrorCode ? 'parsing' : 'scanning';
- return 'An error occured while ${phase} (${errorCode.name}).';
+ return 'An error occured while $phase (${errorCode.name}).';
}
String toString() => '$message';
@@ -206,7 +206,7 @@ class TokenStreamComparator {
if (!isEOF(token2) &&
!(isCLOSE_CURLY_BRACKET(token2) && isEOF(token2.next))) {
throw new FormatterException(
- 'Expected "EOF" but got "${token2}".');
+ 'Expected "EOF" but got "$token2".');
}
}
@@ -216,7 +216,7 @@ class TokenStreamComparator {
while (comment1 != null) {
if (comment2 == null) {
throw new FormatterException(
- 'Expected comment, "${comment1}", at ${describeLocation(token1)}, '
+ 'Expected comment, "$comment1", at ${describeLocation(token1)}, '
'but got none.');
}
if (!equivalentComments(comment1, comment2)) {
@@ -227,7 +227,7 @@ class TokenStreamComparator {
}
if (comment2 != null) {
throw new FormatterException(
- 'Unexpected comment, "${comment2}", at ${describeLocation(token2)}.');
+ 'Unexpected comment, "$comment2", at ${describeLocation(token2)}.');
}
}
@@ -236,7 +236,7 @@ class TokenStreamComparator {
throwNotEqualException(t1, t2) {
throw new FormatterException(
- 'Expected "${t1}" but got "${t2}", at ${describeLocation(t1)}.');
+ 'Expected "$t1" but got "$t2", at ${describeLocation(t1)}.');
}
String describeLocation(Token token) => lineInfo == null ? '<unknown>' :
« no previous file with comments | « pkg/analyzer/lib/src/generated/utilities_collection.dart ('k') | pkg/analyzer/lib/src/services/runtime/coverage/models.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698