| Index: sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart b/sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart
|
| index d9040897b7ded34cc6ff893c6c03d7ff0d14c377..2a2c1feab86d002ebe74ade24ade1e81fa598369 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart
|
| @@ -138,13 +138,13 @@ String stripComment(String comment) {
|
| for (int index = 0 ; index < lines.length ; index++) {
|
| String line = lines[index];
|
| if (index == 0) {
|
| - sb.add(line); // Add the first line unprocessed.
|
| + sb.write(line); // Add the first line unprocessed.
|
| continue;
|
| }
|
| - sb.add('\n');
|
| + sb.write('\n');
|
| match = _multiLineCommentLineStart.firstMatch(line);
|
| if (match != null) {
|
| - sb.add(match[1]);
|
| + sb.write(match[1]);
|
| } else if (index < lines.length-1 || !line.trim().isEmpty) {
|
| // Do not add the last line if it only contains white space.
|
| // This interprets cases like
|
| @@ -152,7 +152,7 @@ String stripComment(String comment) {
|
| // * Foo
|
| // */
|
| // as "\nFoo\n" and not as "\nFoo\n ".
|
| - sb.add(line);
|
| + sb.write(line);
|
| }
|
| }
|
| return sb.toString();
|
|
|