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

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

Issue 545943003: Include additional information into RenameFeedback. (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 | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/generated_protocol.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 6b826fb6d6ab5d7854dc42ea9e53156d52fd9e6d..0dae7925921fdedbd92add6e05ccd3dd2de2d395 100644
--- a/pkg/analysis_server/lib/src/edit/edit_domain.dart
+++ b/pkg/analysis_server/lib/src/edit/edit_domain.dart
@@ -290,7 +290,8 @@ class _RefactoringManager {
AstNode node = nodes[0];
Element element = elements[0];
refactoring = new RenameRefactoring(searchEngine, element);
- feedback = new RenameFeedback(node.offset, node.length);
+ feedback =
+ new RenameFeedback(node.offset, node.length, 'kind', 'oldName');
}
}
if (refactoring == null) {
@@ -318,6 +319,12 @@ class _RefactoringManager {
feedback.offsets = refactoring.offsets;
feedback.lengths = refactoring.lengths;
}
+ if (refactoring is RenameRefactoring) {
+ RenameRefactoring refactoring = this.refactoring;
+ RenameFeedback feedback = this.feedback;
+ feedback.elementKindName = refactoring.elementKindName;
+ feedback.oldName = refactoring.oldName;
+ }
return initStatus;
});
}
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/generated_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698