2 writes to Assigned
Microsoft.CodeAnalysis.CSharp (2)
FlowAnalysis\DefiniteAssignment.cs (2)
2892
self.
Assigned
= other.Assigned.Clone();
2914
this.
Assigned
= assigned;
30 references to Assigned
Microsoft.CodeAnalysis.CSharp (30)
FlowAnalysis\AlwaysAssignedWalker.cs (1)
54
foreach (var i in _endOfRegionState.
Assigned
.TrueBits())
FlowAnalysis\DefiniteAssignment.cs (25)
1043
int oldNext = state.
Assigned
.Capacity;
1045
state.
Assigned
.EnsureCapacity(n);
1052
state.
Assigned
[slot] &&
1061
state.
Assigned
[i] = assign;
1161
if (slot >= this.State.
Assigned
.Capacity) Normalize(ref this.State);
1730
if (slot >= state.
Assigned
.Capacity) Normalize(ref state);
1872
result.
Assigned
[0] = false; // make the state reachable
1972
result.
Assigned
.EnsureCapacity(1);
2821
AppendBitNames(state.
Assigned
, builder);
2854
if (self.
Assigned
.Capacity != other.
Assigned
.Capacity)
2862
self.
Assigned
[0] = true;
2867
for (int slot = 1; slot < self.
Assigned
.Capacity; slot++)
2869
if (other.
Assigned
[slot] && !self.
Assigned
[slot])
2882
if (self.
Assigned
.Capacity != other.
Assigned
.Capacity)
2888
return self.
Assigned
.IntersectWith(other.
Assigned
);
2892
self.Assigned = other.
Assigned
.Clone();
2925
return new LocalState(
Assigned
.Clone());
2930
return /*(slot == -1) || */
Assigned
[slot];
2937
Assigned
[slot] = true;
2944
Assigned
[slot] = false;
2951
return
Assigned
.Capacity <= 0 || !IsAssigned(0);
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (3)
77
if (slot >= this.State.
Assigned
.Capacity)
202
stateAtReturn.
Assigned
.IntersectWith(currentState.CapturedMask);
206
state.
Assigned
.UnionWith(currentState.InvertedCapturedMask);
FlowAnalysis\DefinitelyAssignedWalker.cs (1)
91
foreach (var slot in state1.
Assigned
.TrueBits())