| Index: pkg/analysis_server/lib/src/protocol.dart
|
| diff --git a/pkg/analysis_server/lib/src/protocol.dart b/pkg/analysis_server/lib/src/protocol.dart
|
| index e5349433b8b7b9bfa4edd159b04cc0ff240e2d42..1f6f849d5c0af38f207f3cce5f17c287048c84f6 100644
|
| --- a/pkg/analysis_server/lib/src/protocol.dart
|
| +++ b/pkg/analysis_server/lib/src/protocol.dart
|
| @@ -73,9 +73,7 @@ String _applyEdit(String code, SourceEdit edit) {
|
| if (edit.length < 0) {
|
| throw new RangeError('length is negative');
|
| }
|
| - return code.substring(0, edit.offset) +
|
| - edit.replacement +
|
| - code.substring(edit.end);
|
| + return code.replaceRange(edit.offset, edit.end, edit.replacement);
|
| }
|
|
|
| /**
|
|
|