2 writes to _currentAnalysisData
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
63_currentAnalysisData = analysisData; 77_currentAnalysisData = null;
33 references to _currentAnalysisData
Microsoft.CodeAnalysis.Workspaces (33)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (33)
55Debug.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)) 137if (_currentAnalysisData.IsRValueFlowCapture(flowCapture.Id)) 211Debug.Assert(_currentAnalysisData.IsLValueFlowCapture(captureReference.Id)); 285if (_currentAnalysisData.IsLValueFlowCapture(operation.Id) && 334_currentAnalysisData.ResetState(); 349var newAnalysisData = _currentAnalysisData.AnalyzeLocalFunctionInvocation(localFunction, _cancellationToken); 350_currentAnalysisData.SetCurrentBlockAnalysisDataFrom(newAnalysisData); 355var newAnalysisData = _currentAnalysisData.AnalyzeLambdaInvocation(lambda, _cancellationToken); 356_currentAnalysisData.SetCurrentBlockAnalysisDataFrom(newAnalysisData); 363if (_currentAnalysisData.IsTrackingDelegateCreationTargets && 368_currentAnalysisData.ResetState(); 410if (!_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); 502if (!_currentAnalysisData.IsTrackingDelegateCreationTargets) 508if (!_currentAnalysisData.TryGetDelegateInvocationTargets(operation, out var targets)) 511_currentAnalysisData.ResetState(); 531var savedCurrentAnalysisData = _currentAnalysisData.CreateBlockAnalysisData(); 532savedCurrentAnalysisData.SetAnalysisDataFrom(_currentAnalysisData.CurrentBlockAnalysisData); 534var mergedAnalysisData = _currentAnalysisData.CreateBlockAnalysisData(); 537_currentAnalysisData.SetCurrentBlockAnalysisDataFrom(savedCurrentAnalysisData); 540_currentAnalysisData.CurrentBlockAnalysisData, _currentAnalysisData.TrackAllocatedBlockAnalysisData); 543_currentAnalysisData.SetCurrentBlockAnalysisDataFrom(mergedAnalysisData);