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

Unified Diff: pkg/analysis_server/lib/src/services/refactoring/refactoring.dart

Issue 1431673003: Compute covering offsets/lengths. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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
Index: pkg/analysis_server/lib/src/services/refactoring/refactoring.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/refactoring.dart b/pkg/analysis_server/lib/src/services/refactoring/refactoring.dart
index a4d3c6b6a334daf1354de3ce8672994dbf3d78c3..baeab25627f2abe1e4cae456e196e6740d292f79 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/refactoring.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/refactoring.dart
@@ -72,6 +72,18 @@ abstract class ExtractLocalRefactoring implements Refactoring {
}
/**
+ * The lengths of the expressions that cover the specified selection,
+ * from the down most to the up most.
+ */
+ List<int> get coveringExpressionLengths;
+
+ /**
+ * The offsets of the expressions that cover the specified selection,
+ * from the down most to the up most.
+ */
+ List<int> get coveringExpressionOffsets;
+
+ /**
* True if all occurrences of the expression within the scope in which the
* variable will be defined should be replaced by a reference to the local
* variable. The expression used to initiate the refactoring will always be

Powered by Google App Engine
This is Rietveld 408576698