| Index: pkg/source_maps/lib/refactor.dart
|
| diff --git a/pkg/source_maps/lib/refactor.dart b/pkg/source_maps/lib/refactor.dart
|
| index 45fb0694946c93821cee34a6bf875dd9288448fd..47ce2ed90cd9d2eef7951ea9f900c474675eb0f6 100644
|
| --- a/pkg/source_maps/lib/refactor.dart
|
| +++ b/pkg/source_maps/lib/refactor.dart
|
| @@ -10,6 +10,7 @@ library source_maps.refactor;
|
|
|
| import 'span.dart';
|
| import 'printer.dart';
|
| +import 'src/span_wrapper.dart';
|
|
|
| /// Editable text transaction.
|
| ///
|
| @@ -20,7 +21,13 @@ class TextEditTransaction {
|
| final String original;
|
| final _edits = <_TextEdit>[];
|
|
|
| - TextEditTransaction(this.original, this.file);
|
| + /// Creates a new transaction.
|
| + ///
|
| + /// [file] can be either a `source_map` [SourceFile] or a `source_span`
|
| + /// `SourceFile`. Using a `source_map` [SourceFile] is deprecated and will be
|
| + /// unsupported in version 0.10.0.
|
| + TextEditTransaction(this.original, file)
|
| + : file = SourceFileWrapper.wrap(file);
|
|
|
| bool get hasEdits => _edits.length > 0;
|
|
|
|
|