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

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

Issue 1758913002: Add instantiate method on ParameterizedType and InterfaceType. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 10 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/test/src/utilities/change_builder_dart_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
diff --git a/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart b/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
index 1cb713a1b293973ffe99b32346d24783c54a7e62..b2223d0d542afc2b0fd3eed5bf40397b25dccbfb 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
@@ -667,7 +667,7 @@ class ExtractMethodRefactoringImpl extends RefactoringImpl
variableType = _getTypeCode(_returnType);
if (_hasAwait) {
if (_returnType.element != futureType.element) {
- returnType = _getTypeCode(futureType.substitute4([_returnType]));
+ returnType = _getTypeCode(futureType.instantiate([_returnType]));
}
} else {
returnType = variableType;
« no previous file with comments | « no previous file | pkg/analysis_server/test/src/utilities/change_builder_dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698