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