From b8eede8c9f43563fef85f93c0e2c3c8dcc0f54d1 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Thu, 22 Sep 2022 17:30:29 +0000 Subject: [PATCH] Flow analysis: make propertyGet's wholeExpression argument nullable. This is needed for CFE integration of field type promotion, since it allows the CFE to call propertyGet in circumstances where there's no expression corresponding to the property get, such as during an invocation of a field that's been parsed as a method call. Change-Id: I1856705c080315e87e283af217be331021ef8aee Bug: https://github.com/dart-lang/language/issues/2020 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260452 Commit-Queue: Paul Berry Reviewed-by: Konstantin Shcheglov --- .../lib/src/flow_analysis/flow_analysis.dart | 15 +++++++++++---- pkg/front_end/test/spell_checking_list_code.txt | 1 + 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pkg/_fe_analyzer_shared/lib/src/flow_analysis/flow_analysis.dart b/pkg/_fe_analyzer_shared/lib/src/flow_analysis/flow_analysis.dart index 0dbb9b9105f..efc9e713d65 100644 --- a/pkg/_fe_analyzer_shared/lib/src/flow_analysis/flow_analysis.dart +++ b/pkg/_fe_analyzer_shared/lib/src/flow_analysis/flow_analysis.dart @@ -513,6 +513,13 @@ abstract class FlowAnalysis null; diff --git a/pkg/front_end/test/spell_checking_list_code.txt b/pkg/front_end/test/spell_checking_list_code.txt index cd83a9f2885..cd905c87d04 100644 --- a/pkg/front_end/test/spell_checking_list_code.txt +++ b/pkg/front_end/test/spell_checking_list_code.txt @@ -958,6 +958,7 @@ paren parens parenteses parity +participates particularly partof patchup