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

Unified Diff: utils/template/world.dart

Issue 10943005: Remove uses of String.operator+. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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: utils/template/world.dart
diff --git a/utils/template/world.dart b/utils/template/world.dart
index 0d0369904de66aae869190bd2ab8a91fde651b48..333e67bf9b13e8adc5b21430eef8f63c1886b275 100644
--- a/utils/template/world.dart
+++ b/utils/template/world.dart
@@ -72,7 +72,7 @@ class World {
}
} else {
final messageWithPrefix = options.useColors
- ? (color + prefix + _NO_COLOR + message) : (prefix + message);
+ ? "$color$prefix$_NO_COLOR$message" : "$prefix$message";
var text = messageWithPrefix;
if (span != null) {
@@ -98,7 +98,7 @@ class World {
}
if (throwing) {
- throw new CompilerException(prefix + message, span);
+ throw new CompilerException("$prefix$message", span);
}
}
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/Clock.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698