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

Unified Diff: pkg/analysis_server/lib/src/services/correction/change.dart

Issue 495733002: Don't use LinkedEditGroup.id. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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: pkg/analysis_server/lib/src/services/correction/change.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/change.dart b/pkg/analysis_server/lib/src/services/correction/change.dart
index 9d716f08ef067c55a8debbdd4c06b60c0780fb7a..c3edd702d5a99fc3fffa5871f60104d925b9e649 100644
--- a/pkg/analysis_server/lib/src/services/correction/change.dart
+++ b/pkg/analysis_server/lib/src/services/correction/change.dart
@@ -176,13 +176,10 @@ class FileEdit implements HasToJson {
* same way. All linked positions in a group have the same content.
*/
class LinkedEditGroup implements HasToJson {
- final String id;
int length;
final List<Position> positions = <Position>[];
final List<LinkedEditSuggestion> suggestions = <LinkedEditSuggestion>[];
- LinkedEditGroup(this.id);
-
void addPosition(Position position, int length) {
positions.add(position);
this.length = length;
@@ -195,7 +192,6 @@ class LinkedEditGroup implements HasToJson {
@override
Map<String, Object> toJson() {
return {
- ID: id,
LENGTH: length,
POSITIONS: objectToJson(positions),
SUGGESTIONS: objectToJson(suggestions)
@@ -204,8 +200,7 @@ class LinkedEditGroup implements HasToJson {
@override
String toString() =>
- 'LinkedEditGroup(id=$id, length=$length, '
- 'positions=$positions, suggestions=$suggestions)';
+ 'LinkedEditGroup(length=$length, positions=$positions, suggestions=$suggestions)';
}

Powered by Google App Engine
This is Rietveld 408576698