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

Unified Diff: pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart

Issue 2769223004: Fix tests to verify defaultArgListString specified as null are null. (Closed)
Patch Set: cleanup 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/completion/dart/completion_contributor_util.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/completion/dart/arglist_contributor.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart
index 0ff94078bede7019a50065631bd586079b6c7f93..0a04b695a0be66bff22ac6df98458c4080196749 100644
--- a/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart
+++ b/pkg/analysis_server/lib/src/services/completion/dart/arglist_contributor.dart
@@ -291,8 +291,8 @@ class ArgListContributor extends DartCompletionContributor {
if (options?.generateFlutterWidgetChildrenBoilerPlate == true) {
Element element = param.enclosingElement;
if (element is ConstructorElement) {
- ClassElement classElement = element.enclosingElement;
- if (isFlutterWidget(classElement) && param.name == 'children') {
+ if (isFlutterWidget(element.enclosingElement) &&
+ param.name == 'children') {
return getDefaultStringParameterValue(param);
}
}
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/completion/dart/completion_contributor_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698