16 references to FlowCaptureKind
ILLink.RoslynAnalyzer (16)
DataFlow\LocalDataFlowAnalysis.cs (1)
119
ImmutableDictionary<CaptureId,
FlowCaptureKind
> lValueFlowCaptures,
DataFlow\LocalDataFlowVisitor.cs (4)
49
private readonly ImmutableDictionary<CaptureId,
FlowCaptureKind
> lValueFlowCaptures;
57
=> !lValueFlowCaptures.TryGetValue (captureId, out
var
captureKind) || captureKind !=
FlowCaptureKind
.LValueCapture;
64
ImmutableDictionary<CaptureId,
FlowCaptureKind
> lValueFlowCaptures,
DataFlow\LValueFlowCaptureProvider.cs (9)
51
public static ImmutableDictionary<CaptureId,
FlowCaptureKind
> CreateLValueFlowCaptures (ControlFlowGraph cfg)
60
ImmutableDictionary<CaptureId,
FlowCaptureKind
>.Builder? lvalueFlowCaptureIdBuilder = null;
65
lvalueFlowCaptureIdBuilder ??= ImmutableDictionary.CreateBuilder<CaptureId,
FlowCaptureKind
> ();
66
var
captureKind = assignment?.IsAnyCompoundAssignment () == true || rvalueFlowCaptureIds.Contains (flowCaptureReference.Id)
67
?
FlowCaptureKind
.LValueAndRValueCapture
68
:
FlowCaptureKind
.LValueCapture;
79
var
kind = kvp.Value;
80
Debug.Assert (kind ==
FlowCaptureKind
.LValueAndRValueCapture || !rvalueFlowCaptureIds.Contains (captureId), "Flow capture used as both an r-value and an l-value, but with incorrect flow capture kind");
85
return lvalueFlowCaptureIdBuilder != null ? lvalueFlowCaptureIdBuilder.ToImmutable () : ImmutableDictionary<CaptureId,
FlowCaptureKind
>.Empty;
TrimAnalysis\TrimAnalysisVisitor.cs (1)
51
ImmutableDictionary<CaptureId,
FlowCaptureKind
> lValueFlowCaptures,
TrimAnalysis\TrimDataFlowAnalysis.cs (1)
63
ImmutableDictionary<CaptureId,
FlowCaptureKind
> lValueFlowCaptures,