3 instantiations of Variables
Microsoft.CodeAnalysis.CSharp (3)
FlowAnalysis\NullableWalker.Variables.cs (3)
142
return new
Variables
(id: 0, container: null, symbol);
148
var variables = new
Variables
(snapshot.Id, container, snapshot.Symbol);
221
return new
Variables
(id: GetNextId(), this, method);
53 references to Variables
Microsoft.CodeAnalysis.CSharp (53)
FlowAnalysis\NullableWalker.cs (31)
165
private
Variables
_variables;
238
private PooledDictionary<MethodSymbol,
Variables
>? _nestedFunctionVariables;
457
Variables
? variables,
469
_variables = variables ??
Variables
.Create(symbol);
1644
Variables
.Create(variables),
1750
var
variables =
Variables
.Create(initialState.Variables).CreateNestedMethodScope(symbol);
1808
initialState is null ? null :
Variables
.Create(initialState.Variables),
3277
private
Variables
GetOrCreateNestedFunctionVariables(
Variables
container, MethodSymbol lambdaOrLocalFunction)
3279
_nestedFunctionVariables ??= PooledDictionary<MethodSymbol,
Variables
>.GetInstance();
7836
private static VariableState GetVariableState(
Variables
variables, LocalState localState)
12281
/// <see cref="
Variables
"/> chain, and the <see cref="Id"/> field in this type matches <see cref="
Variables
.Id"/>.
12326
public static LocalState ReachableState(
Variables
variables)
12331
public static LocalState UnreachableState(
Variables
variables)
12336
public static LocalState ReachableStateWithNotNulls(
Variables
variables)
12360
private static LocalState CreateReachableOrUnreachableState(
Variables
variables, bool reachable)
12369
public LocalState CreateNestedMethodState(
Variables
variables)
12395
(int id, int index) =
Variables
.DeconstructSlot(slot);
12411
public void NormalizeIfNeeded(int slot, NullableWalker walker,
Variables
variables, bool useNotNullsAsDefault = false)
12422
(int id, int index) =
Variables
.DeconstructSlot(slot);
12440
public void Normalize(NullableWalker walker,
Variables
variables, bool useNotNullsAsDefault = false)
12467
int slot =
Variables
.ConstructSlot(Id, index);
12476
(int id, int index) =
Variables
.DeconstructSlot(slot);
12481
(int id, int index) =
Variables
.DeconstructSlot(slot);
12551
action(
Variables
.ConstructSlot(Id, index), arg);
12645
internal string Dump(
Variables
variables)
12658
private void Dump(StringBuilder builder,
Variables
variables)
12664
if (getName(
Variables
.ConstructSlot(Id, index)) is string name)
12707
var
variables = (symbol.ContainingSymbol is MethodSymbol containingMethod ? _variables.GetVariablesForMethodScope(containingMethod) : null) ??
FlowAnalysis\NullableWalker.Variables.cs (22)
17
/// An immutable copy of <see cref="
Variables
"/>.
111
internal readonly
Variables
? Container;
140
internal static
Variables
Create(Symbol? symbol)
145
internal static
Variables
Create(VariablesSnapshot snapshot)
147
var
container = snapshot.Container is null ? null : Create(snapshot.Container);
148
var
variables = new Variables(snapshot.Id, container, snapshot.Symbol);
183
private Variables(int id,
Variables
? container, Symbol? symbol)
214
internal
Variables
CreateNestedMethodScope(MethodSymbol method)
242
var
variables = GetVariablesForVariable(identifier);
259
var
variables = GetVariablesForVariable(identifier);
299
var
variables = GetVariablesContainingSymbol(symbol);
305
var
variables = GetVariablesContainingSymbol(symbol);
315
var
variables = GetVariablesForId(id);
331
var
variables = GetVariablesForId(id)!;
343
private
Variables
GetVariablesForVariable(VariableIdentifier identifier)
353
private
Variables
GetVariablesContainingSymbol(Symbol symbol)
372
internal
Variables
GetRootScope()
374
var
variables = this;
382
private
Variables
? GetVariablesForId(int id)
384
var
variables = this;
397
internal
Variables
? GetVariablesForMethodScope(MethodSymbol method)
399
var
variables = this;