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

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

Issue 554053002: Return a feedback for the INLINE_METHOD refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
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 00c5cb09f68a7249c557fe5a9a134660b76e3e1a..fac12c1009bd4dd6dea556535a9c7aa01a6433ee 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/refactoring.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/refactoring.dart
@@ -216,6 +216,12 @@ abstract class InlineMethodRefactoring implements Refactoring {
}
/**
+ * The name of the class enclosing the method being inlined.
+ * If not a class member is being inlined, then `null`.
+ */
+ String get className;
+
+ /**
* True if the method being inlined should be removed.
* It is an error if this field is `true` and [inlineAll] is `false`.
*/
@@ -226,6 +232,17 @@ abstract class InlineMethodRefactoring implements Refactoring {
* the invocation site used to create this refactoring should be inlined.
*/
void set inlineAll(bool inlineAll);
+
+ /**
+ * True if the declaration of the method is selected.
+ * So, all references should be inlined.
+ */
+ bool get isDeclaration;
+
+ /**
+ * The name of the method (or function) being inlined.
+ */
+ String get methodName;
}

Powered by Google App Engine
This is Rietveld 408576698