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,
468
_variables = variables ??
Variables
.Create(symbol);
1583
Variables
.Create(variables),
1689
var
variables =
Variables
.Create(initialState.Variables).CreateNestedMethodScope(symbol);
1747
initialState is null ? null :
Variables
.Create(initialState.Variables),
3216
private
Variables
GetOrCreateNestedFunctionVariables(
Variables
container, MethodSymbol lambdaOrLocalFunction)
3218
_nestedFunctionVariables ??= PooledDictionary<MethodSymbol,
Variables
>.GetInstance();
7778
private static VariableState GetVariableState(
Variables
variables, LocalState localState)
12223
/// <see cref="
Variables
"/> chain, and the <see cref="Id"/> field in this type matches <see cref="
Variables
.Id"/>.
12268
public static LocalState ReachableState(
Variables
variables)
12273
public static LocalState UnreachableState(
Variables
variables)
12278
public static LocalState ReachableStateWithNotNulls(
Variables
variables)
12302
private static LocalState CreateReachableOrUnreachableState(
Variables
variables, bool reachable)
12311
public LocalState CreateNestedMethodState(
Variables
variables)
12337
(int id, int index) =
Variables
.DeconstructSlot(slot);
12353
public void NormalizeIfNeeded(int slot, NullableWalker walker,
Variables
variables, bool useNotNullsAsDefault = false)
12364
(int id, int index) =
Variables
.DeconstructSlot(slot);
12382
public void Normalize(NullableWalker walker,
Variables
variables, bool useNotNullsAsDefault = false)
12409
int slot =
Variables
.ConstructSlot(Id, index);
12418
(int id, int index) =
Variables
.DeconstructSlot(slot);
12423
(int id, int index) =
Variables
.DeconstructSlot(slot);
12493
action(
Variables
.ConstructSlot(Id, index), arg);
12587
internal string Dump(
Variables
variables)
12600
private void Dump(StringBuilder builder,
Variables
variables)
12606
if (getName(
Variables
.ConstructSlot(Id, index)) is string name)
12649
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;