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

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

Issue 1855643002: More strong mode changes to analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Backout changes to options file Created 4 years, 9 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/inline_local.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/inline_local.dart b/pkg/analysis_server/lib/src/services/refactoring/inline_local.dart
index 63126580f638a46dcce0185e78371988923b467c..141eb8a3cb2360736f8c0c0169e8efd776a90b11 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/inline_local.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/inline_local.dart
@@ -84,7 +84,7 @@ class InlineLocalRefactoringImpl extends RefactoringImpl
result = new RefactoringStatus.fatal(
'Local variable declaration or reference must be selected '
'to activate this refactoring.');
- return new Future.value(result);
+ return new Future<RefactoringStatus>.value(result);
}
// should have initializer at declaration
if (_variableNode.initializer == null) {
@@ -93,7 +93,7 @@ class InlineLocalRefactoringImpl extends RefactoringImpl
_variableElement.displayName);
result = new RefactoringStatus.fatal(
message, newLocation_fromNode(_variableNode));
- return new Future.value(result);
+ return new Future<RefactoringStatus>.value(result);
}
// prepare references
_references = await searchEngine.searchReferences(_variableElement);

Powered by Google App Engine
This is Rietveld 408576698