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

Unified Diff: pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_core.dart

Issue 2928313002: Update AssistProcessor to use ChangeBuilder (Closed)
Patch Set: Created 3 years, 6 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/analyzer_plugin/lib/src/utilities/change_builder/change_builder_core.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_core.dart
diff --git a/pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_core.dart b/pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_core.dart
index d6894b10adc538393e7f79b76a7b5b0a1a07f220..c34dfd003ada0e1a09d434c2a0e076cb00c70523 100644
--- a/pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_core.dart
+++ b/pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_core.dart
@@ -70,8 +70,13 @@ abstract class EditBuilder {
/**
* Set the selection to the given location within the edit being built.
+ *
+ * This method only works correctly if all of the edits that will applied to
+ * text before the current edit have already been created. Those edits are
+ * needed in order to convert the current offset (as of the time this method
+ * is invoked) into an offset relative to the text resulting from applying all
+ * of the edits.
*/
- @experimental
void selectHere();
/**
@@ -115,6 +120,11 @@ abstract class FileEditBuilder {
* source. This is typically used to include pre-existing regions of text in a
* group. If the region to be included is part of newly generated text, then
* the method [EditBuilder.addLinkedEdit] should be used instead.
+ *
+ * This method only works correctly if all of the edits that will applied to
+ * text before the given range have already been created. Those edits are
+ * needed in order to convert the range into a range relative to the text
+ * resulting from applying all of the edits.
*/
void addLinkedPosition(SourceRange range, String groupName);
« no previous file with comments | « pkg/analyzer_plugin/lib/src/utilities/change_builder/change_builder_core.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698