diff --git a/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs b/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs index 5a69abfa02..20553be258 100644 --- a/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs +++ b/src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/AnalysisEntity.cs @@ -186,8 +186,8 @@ internal bool ShouldBeTrackedForAnalysis(bool hasCompletePointsToAnalysisResult) public bool HasConstantValue => Symbol switch { - IFieldSymbol field => field.HasConstantValue, - ILocalSymbol local => local.HasConstantValue, + IFieldSymbol fieldSymbol => fieldSymbol.HasConstantValue, + ILocalSymbol localSymbol => localSymbol.HasConstantValue, _ => false, };