| Index: pkg/analysis_services/lib/src/correction/source_range.dart
|
| diff --git a/pkg/analysis_services/lib/src/correction/source_range.dart b/pkg/analysis_services/lib/src/correction/source_range.dart
|
| index 433d5e6fad22966de77471a15d1ef2861899be9d..a0c3a46c5eedc42aab3b2f6159d12d8b973c9b23 100644
|
| --- a/pkg/analysis_services/lib/src/correction/source_range.dart
|
| +++ b/pkg/analysis_services/lib/src/correction/source_range.dart
|
| @@ -47,6 +47,12 @@ SourceRange rangeNodes(List<AstNode> nodes) {
|
| return rangeStartEnd(first, last);
|
| }
|
|
|
| +SourceRange rangeOffsetEnd(o) {
|
| + int offset = o.offset;
|
| + int length = o.end - offset;
|
| + return new SourceRange(offset, length);
|
| +}
|
| +
|
| SourceRange rangeStartEnd(a, b) {
|
| int offset = a is int ? a : a.offset;
|
| int end = b is int ? b : b.end;
|
|
|