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

Unified Diff: pkg/analyzer/test/generated/test_support.dart

Issue 674183002: Drop unnecessary toString() in interpolations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/test_support.dart
diff --git a/pkg/analyzer/test/generated/test_support.dart b/pkg/analyzer/test/generated/test_support.dart
index cb249cbef1df531bdfb218eef449f84025879e5d..a31920983b039f9d1b39d2c54e7322ee977b799d 100644
--- a/pkg/analyzer/test/generated/test_support.dart
+++ b/pkg/analyzer/test/generated/test_support.dart
@@ -320,7 +320,7 @@ class EngineTestCase extends JUnitTestCase {
Type expectedClass, Object object) {
if (!predicate(object)) {
JUnitTestCase.fail(
- "Expected instance of ${expectedClass.toString()}, found ${(object == null ? "null" : object.runtimeType.toString())}");
+ "Expected instance of $expectedClass, found ${(object == null ? "null" : object.runtimeType)}");
}
return object;
}
@@ -660,7 +660,7 @@ class GatheringErrorListener implements AnalysisErrorListener {
}
builder.append(expectedCount);
builder.append(" errors of type ");
- builder.append("${code.runtimeType.toString()}.${code}");
+ builder.append("${code.runtimeType}.$code");
builder.append(", found ");
builder.append(actualCount);
}
@@ -680,7 +680,7 @@ class GatheringErrorListener implements AnalysisErrorListener {
builder.append("; ");
}
builder.append("0 errors of type ");
- builder.append("${code.runtimeType.toString()}.${code}");
+ builder.append("${code.runtimeType}.$code");
builder.append(", found ");
builder.append(actualCount);
builder.append(" (");
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698