diff --git a/analyzers/src/SonarAnalyzer.CFG/LiveVariableAnalysis/RoslynLiveVariableAnalysis.cs b/analyzers/src/SonarAnalyzer.CFG/LiveVariableAnalysis/RoslynLiveVariableAnalysis.cs index a4f0aad2691..7c4662ac753 100644 --- a/analyzers/src/SonarAnalyzer.CFG/LiveVariableAnalysis/RoslynLiveVariableAnalysis.cs +++ b/analyzers/src/SonarAnalyzer.CFG/LiveVariableAnalysis/RoslynLiveVariableAnalysis.cs @@ -24,7 +24,7 @@ namespace SonarAnalyzer.CFG.LiveVariableAnalysis; public sealed class RoslynLiveVariableAnalysis : LiveVariableAnalysisBase { - private readonly Dictionary> flowCaptureOperations = []; + private readonly Dictionary> flowCaptures = []; private readonly Dictionary> blockPredecessors = []; private readonly Dictionary> blockSuccessors = []; @@ -72,7 +72,7 @@ protected override IEnumerable Successors(BasicBlock block) => protected override State ProcessBlock(BasicBlock block) { var ret = new RoslynState(this); - ret.ProcessBlock(Cfg, block, flowCaptureOperations); + ret.ProcessBlock(Cfg, block, flowCaptures); return ret; } @@ -86,7 +86,7 @@ private void ResolveCaptures() .Select(x => x.Instance.ToFlowCapture())) { if (flowCapture.Value.AsFlowCaptureReference() is { } captureReference - && flowCaptureOperations.TryGetValue(captureReference.Id, out var symbols)) + && flowCaptures.TryGetValue(captureReference.Id, out var symbols)) { AppendFlowCaptureReference(flowCapture.Id, symbols.ToArray()); } @@ -98,10 +98,10 @@ private void ResolveCaptures() void AppendFlowCaptureReference(CaptureId id, params ISymbol[] symbols) { - if (!flowCaptureOperations.TryGetValue(id, out var list)) + if (!flowCaptures.TryGetValue(id, out var list)) { list = []; - flowCaptureOperations.Add(id, list); + flowCaptures.Add(id, list); } list.AddRange(symbols); }