| Index: pkg/analysis_services/lib/correction/change.dart
|
| diff --git a/pkg/analysis_services/lib/correction/change.dart b/pkg/analysis_services/lib/correction/change.dart
|
| index 2135d133a0da083490a3e2f2f5f603a616127aab..d4073e963fa4490868dafe06667afb691ca2cb06 100644
|
| --- a/pkg/analysis_services/lib/correction/change.dart
|
| +++ b/pkg/analysis_services/lib/correction/change.dart
|
| @@ -193,10 +193,11 @@ class FileEdit implements HasToJson {
|
| class LinkedPositionGroup implements HasToJson {
|
| final String id;
|
| final List<Position> positions = <Position>[];
|
| + final List<String> proposals = <String>[];
|
|
|
| LinkedPositionGroup(this.id);
|
|
|
| - void add(Position position) {
|
| + void addPosition(Position position) {
|
| if (positions.isNotEmpty && position.length != positions[0].length) {
|
| throw new ArgumentError(
|
| 'All positions should have the same length. '
|
| @@ -205,6 +206,10 @@ class LinkedPositionGroup implements HasToJson {
|
| positions.add(position);
|
| }
|
|
|
| + void addProposal(String proposal) {
|
| + proposals.add(proposal);
|
| + }
|
| +
|
| @override
|
| Map<String, Object> toJson() {
|
| return {
|
|
|