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

Unified Diff: pkg/source_maps/lib/refactor.dart

Issue 402843003: Deprecate the source_maps span classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add -dev to version Created 6 years, 5 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
« no previous file with comments | « pkg/source_maps/lib/printer.dart ('k') | pkg/source_maps/lib/span.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/source_maps/lib/printer.dart ('k') | pkg/source_maps/lib/span.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698