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

Unified Diff: pkg/analysis_server/lib/src/services/correction/fix_internal.dart

Issue 2749373002: Correct target of ADD_MISSING_REQUIRED_ARGUMENT fixes (flutter-intellij#788) (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/correction/fix_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/correction/fix_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
index 9c19900a1d90f438e6406a8226d635e2ce24c6e2..34bd735d4b6a7a18ef51dee8bde2cda43cebcf6c 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
@@ -598,7 +598,7 @@ class FixProcessor {
// In the future consider better values than null for specific element types.
sb.append('$paramName: null');
- _insertBuilder(sb, targetElement);
+ _insertBuilder(sb, null);
_addFix(DartFixKind.ADD_MISSING_REQUIRED_ARGUMENT, [paramName]);
}
}
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/correction/fix_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698