2 writes to _currentAnalysisData
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
63
_currentAnalysisData
= analysisData;
77
_currentAnalysisData
= null;
33 references to _currentAnalysisData
Microsoft.CodeAnalysis.CodeStyle (33)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (33)
55
Debug.Assert(
_currentAnalysisData
== null);
92
=>
_currentAnalysisData
.OnReadReferenceFound(symbol);
98
_currentAnalysisData
.OnWriteReferenceFound(symbol, operation, maybeWritten: isRef, isRef);
103
=>
_currentAnalysisData
.OnLValueCaptureFound(symbol, operation, captureId);
106
=>
_currentAnalysisData
.OnLValueDereferenceFound(captureId);
132
_currentAnalysisData
.IsLValueFlowCapture(flowCapture.Id))
137
if (
_currentAnalysisData
.IsRValueFlowCapture(flowCapture.Id))
211
Debug.Assert(
_currentAnalysisData
.IsLValueFlowCapture(captureReference.Id));
285
if (
_currentAnalysisData
.IsLValueFlowCapture(operation.Id) &&
334
_currentAnalysisData
.ResetState();
349
var newAnalysisData =
_currentAnalysisData
.AnalyzeLocalFunctionInvocation(localFunction, _cancellationToken);
350
_currentAnalysisData
.SetCurrentBlockAnalysisDataFrom(newAnalysisData);
355
var newAnalysisData =
_currentAnalysisData
.AnalyzeLambdaInvocation(lambda, _cancellationToken);
356
_currentAnalysisData
.SetCurrentBlockAnalysisDataFrom(newAnalysisData);
363
if (
_currentAnalysisData
.IsTrackingDelegateCreationTargets &&
368
_currentAnalysisData
.ResetState();
410
if (!
_currentAnalysisData
.IsTrackingDelegateCreationTargets ||
458
_currentAnalysisData
.SetLambdaTargetForDelegate(write, (IFlowAnonymousFunctionOperation)currentOperation);
465
_currentAnalysisData
.SetLocalFunctionTargetForDelegate(write, methodReference);
469
_currentAnalysisData
.SetEmptyInvocationTargetsForDelegate(write);
476
_currentAnalysisData
.SetTargetsFromSymbolForDelegate(write, localReference.Local);
481
_currentAnalysisData
.SetTargetsFromSymbolForDelegate(write, parameterReference.Parameter);
487
_currentAnalysisData
.SetEmptyInvocationTargetsForDelegate(write);
502
if (!
_currentAnalysisData
.IsTrackingDelegateCreationTargets)
508
if (!
_currentAnalysisData
.TryGetDelegateInvocationTargets(operation, out var targets))
511
_currentAnalysisData
.ResetState();
531
var savedCurrentAnalysisData =
_currentAnalysisData
.CreateBlockAnalysisData();
532
savedCurrentAnalysisData.SetAnalysisDataFrom(
_currentAnalysisData
.CurrentBlockAnalysisData);
534
var mergedAnalysisData =
_currentAnalysisData
.CreateBlockAnalysisData();
537
_currentAnalysisData
.SetCurrentBlockAnalysisDataFrom(savedCurrentAnalysisData);
540
_currentAnalysisData
.CurrentBlockAnalysisData,
_currentAnalysisData
.TrackAllocatedBlockAnalysisData);
543
_currentAnalysisData
.SetCurrentBlockAnalysisDataFrom(mergedAnalysisData);