3 instantiations of VariableIdentifier
Microsoft.CodeAnalysis.CSharp (3)
FlowAnalysis\LocalDataFlowPass.cs (3)
89
return TryGetVariable(new
VariableIdentifier
(symbol, containingSlot), out slot) ? slot : -1;
115
VariableIdentifier identifier = new
VariableIdentifier
(symbol, containingSlot);
191
if (!TryGetVariable(new
VariableIdentifier
(restField, containingSlot), out containingSlot))
41 references to VariableIdentifier
Microsoft.CodeAnalysis.CSharp (41)
FlowAnalysis\DefiniteAssignment.cs (11)
42
private readonly PooledDictionary<
VariableIdentifier
, int> _variableSlot = PooledDictionary<
VariableIdentifier
, int>.GetInstance();
54
protected readonly ArrayBuilder<
VariableIdentifier
> variableBySlot = ArrayBuilder<
VariableIdentifier
>.GetInstance(1, default);
269
protected override bool TryGetVariable(
VariableIdentifier
identifier, out int slot)
274
protected override int AddVariable(
VariableIdentifier
identifier)
285
VariableIdentifier
variableId = variableBySlot[slot];
1691
VariableIdentifier
variable = variableBySlot[containingSlot];
1727
VariableIdentifier
id = variableBySlot[slot];
1763
VariableIdentifier
id = variableBySlot[slot];
2839
VariableIdentifier
id = variableBySlot[bit];
FlowAnalysis\DefiniteAssignment.LocalFunctions.cs (1)
104
VariableIdentifier
id = variableBySlot[slot];
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (6)
14
internal readonly struct VariableIdentifier : IEquatable<
VariableIdentifier
>
61
public bool Equals(
VariableIdentifier
other)
94
public static bool operator ==(
VariableIdentifier
left,
VariableIdentifier
right)
100
public static bool operator !=(
VariableIdentifier
left,
VariableIdentifier
right)
FlowAnalysis\LocalDataFlowPass.cs (3)
60
protected abstract bool TryGetVariable(
VariableIdentifier
identifier, out int slot);
62
protected abstract int AddVariable(
VariableIdentifier
identifier);
115
VariableIdentifier
identifier = new VariableIdentifier(symbol, containingSlot);
FlowAnalysis\NullableWalker.cs (6)
516
protected override bool TryGetVariable(
VariableIdentifier
identifier, out int slot)
521
protected override int AddVariable(
VariableIdentifier
identifier)
1905
var
variable = _variables[slot];
2727
var members = ArrayBuilder<(
VariableIdentifier
, int)>.GetInstance();
2747
var members = ArrayBuilder<(
VariableIdentifier
, int)>.GetInstance();
12618
VariableIdentifier
id = variables[slot];
FlowAnalysis\NullableWalker.Variables.cs (14)
43
internal readonly ImmutableArray<KeyValuePair<
VariableIdentifier
, int>> VariableSlot;
50
internal VariablesSnapshot(int id, VariablesSnapshot? container, Symbol? symbol, ImmutableArray<KeyValuePair<
VariableIdentifier
, int>> variableSlot, ImmutableDictionary<Symbol, TypeWithAnnotations> variableTypes)
123
private readonly PooledDictionary<
VariableIdentifier
, int> _variableSlot = PooledDictionary<
VariableIdentifier
, int>.GetInstance();
138
private readonly ArrayBuilder<
VariableIdentifier
> _variableBySlot = ArrayBuilder<
VariableIdentifier
>.GetInstance(1, default);
171
var
identifier = pair.Key;
240
internal bool TryGetValue(
VariableIdentifier
identifier, out int slot)
246
private bool TryGetValueInternal(
VariableIdentifier
identifier, out int slot)
257
internal int Add(
VariableIdentifier
identifier)
268
private int AddInternal(
VariableIdentifier
identifier)
310
internal
VariableIdentifier
this[int slot]
328
internal void GetMembers(ArrayBuilder<(
VariableIdentifier
, int)> builder, int containingSlot)
343
private Variables GetVariablesForVariable(
VariableIdentifier
identifier)