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

Unified Diff: pkg/analysis_server/lib/src/edit/edit_domain.dart

Issue 547343004: Send feedback for the INLINE_LOCAL_VARIABLE 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/refactoring/inline_local.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/edit/edit_domain.dart
diff --git a/pkg/analysis_server/lib/src/edit/edit_domain.dart b/pkg/analysis_server/lib/src/edit/edit_domain.dart
index 2c28a41189b068e6f2a943891cc19b86398eebd5..3edbdb9ea44cc6936df85740da44b67d16339fc8 100644
--- a/pkg/analysis_server/lib/src/edit/edit_domain.dart
+++ b/pkg/analysis_server/lib/src/edit/edit_domain.dart
@@ -321,6 +321,14 @@ class _RefactoringManager {
feedback.offsets = refactoring.offsets;
feedback.lengths = refactoring.lengths;
}
+ if (refactoring is InlineLocalRefactoring) {
+ InlineLocalRefactoring refactoring = this.refactoring;
+ if (!status.hasFatalError) {
+ feedback = new InlineLocalVariableFeedback(
+ refactoring.variableName,
+ refactoring.referenceCount);
+ }
+ }
if (refactoring is RenameRefactoring) {
RenameRefactoring refactoring = this.refactoring;
RenameFeedback feedback = this.feedback;
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/refactoring/inline_local.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698