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

Unified Diff: dart/lib/compiler/implementation/source_file.dart

Issue 10407064: Purge String operator+ from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
Index: dart/lib/compiler/implementation/source_file.dart
diff --git a/dart/lib/compiler/implementation/source_file.dart b/dart/lib/compiler/implementation/source_file.dart
index b8f138f924c1c083fdb762b4dc11073fb3f68d45..884d00854d181dd6172513dab2d0f4e820410609 100644
--- a/dart/lib/compiler/implementation/source_file.dart
+++ b/dart/lib/compiler/implementation/source_file.dart
@@ -67,7 +67,7 @@ class SourceFile {
if ((line + 2) < _lineStarts.length) {
textLine = text.substring(_lineStarts[line], _lineStarts[line+1]);
} else {
- textLine = text.substring(_lineStarts[line]) + '\n';
+ textLine = '${text.substring(_lineStarts[line])}\n';
}
int toColumn = Math.min(column + (end-start), textLine.length);

Powered by Google App Engine
This is Rietveld 408576698