OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library services.src.refactoring; | 5 library services.src.refactoring; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 | 9 |
10 import 'package:analysis_server/src/protocol_server.dart' hide Element; | 10 import 'package:analysis_server/src/protocol_server.dart' hide Element; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 } | 94 } |
95 | 95 |
96 /** | 96 /** |
97 * Returns the [SourceEdit] to replace this reference. | 97 * Returns the [SourceEdit] to replace this reference. |
98 */ | 98 */ |
99 SourceEdit createEdit(String newText, {String id}) { | 99 SourceEdit createEdit(String newText, {String id}) { |
100 return newSourceEdit_range(range, newText, id: id); | 100 return newSourceEdit_range(range, newText, id: id); |
101 } | 101 } |
102 | 102 |
103 @override | 103 @override |
104 String toString() => '${file}@${range}'; | 104 String toString() => '$file@$range'; |
105 } | 105 } |
OLD | NEW |