From 072a35ebc7ee18e4a878ba0bf1dbd51f02f5de84 Mon Sep 17 00:00:00 2001 From: mary-georgiou-sonarsource Date: Thu, 18 Jul 2024 17:41:23 +0200 Subject: [PATCH] apply renaming --- .../LiveVariableAnalysis/RoslynLiveVariableAnalysis.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); }