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

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

Issue 1388783003: Spec change: include covering expressions into Extract Local protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/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 cb7b513abefa6dfc578eca1a44742e1d09d82e5c..f6c298d0329904ceb0a4b8f74fcfb690173f00b3 100644
--- a/pkg/analysis_server/lib/src/edit/edit_domain.dart
+++ b/pkg/analysis_server/lib/src/edit/edit_domain.dart
@@ -557,7 +557,8 @@ class _RefactoringManager {
List<CompilationUnit> units = server.getResolvedCompilationUnits(file);
if (units.isNotEmpty) {
refactoring = new ExtractLocalRefactoring(units[0], offset, length);
- feedback = new ExtractLocalVariableFeedback([], [], []);
+ feedback = new ExtractLocalVariableFeedback(
+ <int>[], <int>[], <String>[], <int>[], <int>[]);
}
}
if (kind == RefactoringKind.EXTRACT_METHOD) {
@@ -565,8 +566,8 @@ class _RefactoringManager {
if (units.isNotEmpty) {
refactoring = new ExtractMethodRefactoring(
searchEngine, units[0], offset, length);
- feedback = new ExtractMethodFeedback(
- offset, length, '', [], false, [], [], []);
+ feedback = new ExtractMethodFeedback(offset, length, '', <String>[],
+ false, <RefactoringMethodParameter>[], <int>[], <int>[]);
}
}
if (kind == RefactoringKind.INLINE_LOCAL_VARIABLE) {

Powered by Google App Engine
This is Rietveld 408576698