| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library services.correction.change; | 8 library services.correction.change; |
| 9 | 9 |
| 10 import 'package:analysis_services/constants.dart'; | 10 import 'package:analysis_services/constants.dart'; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 * A list of the [FileEdit]s used to effect the change. | 30 * A list of the [FileEdit]s used to effect the change. |
| 31 */ | 31 */ |
| 32 final List<FileEdit> edits = <FileEdit>[]; | 32 final List<FileEdit> edits = <FileEdit>[]; |
| 33 | 33 |
| 34 /** | 34 /** |
| 35 * A list of the [LinkedPositionGroup]s in the change. | 35 * A list of the [LinkedPositionGroup]s in the change. |
| 36 */ | 36 */ |
| 37 final List<LinkedPositionGroup> linkedPositionGroups = <LinkedPositionGroup>[ | 37 final List<LinkedPositionGroup> linkedPositionGroups = <LinkedPositionGroup>[ |
| 38 ]; | 38 ]; |
| 39 | 39 |
| 40 /** |
| 41 * An optional position to move selection to after applying this change. |
| 42 */ |
| 43 Position endPosition; |
| 44 |
| 40 Change(this.message); | 45 Change(this.message); |
| 41 | 46 |
| 42 /** | 47 /** |
| 43 * Adds the given [FileEdit]. | 48 * Adds the given [FileEdit]. |
| 44 */ | 49 */ |
| 45 void add(FileEdit edit) { | 50 void add(FileEdit edit) { |
| 46 edits.add(edit); | 51 edits.add(edit); |
| 47 } | 52 } |
| 48 | 53 |
| 49 /** | 54 /** |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 @override | 263 @override |
| 259 String toString() => 'Position(file=$file, offset=$offset, length=$length)'; | 264 String toString() => 'Position(file=$file, offset=$offset, length=$length)'; |
| 260 | 265 |
| 261 static Position fromJson(Map<String, Object> json) { | 266 static Position fromJson(Map<String, Object> json) { |
| 262 String file = json[FILE]; | 267 String file = json[FILE]; |
| 263 int offset = json[OFFSET]; | 268 int offset = json[OFFSET]; |
| 264 int length = json[LENGTH]; | 269 int length = json[LENGTH]; |
| 265 return new Position(file, offset, length); | 270 return new Position(file, offset, length); |
| 266 } | 271 } |
| 267 } | 272 } |
| OLD | NEW |