From ca2a0f0ad74b22c5d903b33cf8eb585978770882 Mon Sep 17 00:00:00 2001 From: Charles Stoner <10732005+cston@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:12:47 -0700 Subject: [PATCH 1/2] Update field references --- .../FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs b/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs index 5a69abfa02..15dd921811 100644 --- a/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs +++ b/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs @@ -186,7 +186,7 @@ internal bool ShouldBeTrackedForAnalysis(bool hasCompletePointsToAnalysisResult) public bool HasConstantValue => Symbol switch { - IFieldSymbol field => field.HasConstantValue, + IFieldSymbol fieldSymbol => fieldSymbol.HasConstantValue, ILocalSymbol local => local.HasConstantValue, _ => false, }; From c9360d91b716f8df816c3d602ad70aa48ec41e67 Mon Sep 17 00:00:00 2001 From: Charles Stoner <10732005+cston@users.noreply.github.com> Date: Thu, 3 Oct 2024 08:02:27 -0700 Subject: [PATCH 2/2] Rename local --- .../FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs b/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs index 15dd921811..20553be258 100644 --- a/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs +++ b/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs @@ -187,7 +187,7 @@ internal bool ShouldBeTrackedForAnalysis(bool hasCompletePointsToAnalysisResult) public bool HasConstantValue => Symbol switch { IFieldSymbol fieldSymbol => fieldSymbol.HasConstantValue, - ILocalSymbol local => local.HasConstantValue, + ILocalSymbol localSymbol => localSymbol.HasConstantValue, _ => false, };