1 instantiation of VariableState
Microsoft.CodeAnalysis.CSharp (1)
FlowAnalysis\NullableWalker.cs (1)
7778
return new
VariableState
(variables.CreateSnapshot(), localState.CreateSnapshot());
21 references to VariableState
Microsoft.CodeAnalysis.CSharp (21)
BoundTree\UnboundLambda.cs (4)
117
public TypeWithAnnotations GetInferredReturnType(ConversionsBase? conversions, NullableWalker.
VariableState
? nullableState, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo, out bool inferredFromFunctionType)
388
private readonly NullableWalker.
VariableState
? _nullableState;
420
private UnboundLambda(SyntaxNode syntax, UnboundLambdaState state, FunctionTypeSymbol? functionType, bool withDependencies, NullableWalker.
VariableState
? nullableState, bool hasErrors) :
426
internal UnboundLambda WithNullableState(NullableWalker.
VariableState
nullableState)
Compilation\MethodBodySemanticModel.cs (1)
294
var
afterInitializersState = NullableWalker.GetAfterInitializersState(Compilation, MemberSymbol, boundRoot);
Compiler\MethodCompiler.cs (2)
1751
NullableWalker.
VariableState
? nullableInitialState = null;
1965
NullableWalker.
VariableState
? getInitializerState(BoundNode? body)
FlowAnalysis\NullableWalker.cs (14)
1340
VariableState
? initialNullableState,
1343
out
VariableState
? finalNullableState)
1367
VariableState
? initialNullableState,
1370
out
VariableState
? finalNullableState,
1403
internal static
VariableState
? GetAfterInitializersState(CSharpCompilation compilation, Symbol? symbol, BoundNode constructorBody)
1421
internal static
VariableState
? GetAfterInitializersState(CSharpCompilation compilation, MethodSymbol method, BoundNode nodeToAnalyze, BoundNode? constructorBody, BindingDiagnosticBag diagnostics)
1449
out
var
afterInitializersState);
1491
VariableState
? initialState,
1507
VariableState
? initialState,
1685
VariableState
initialState,
1728
VariableState
? initialState,
1734
out
VariableState
? finalNullableState,
7775
private static
VariableState
GetVariableState(Variables variables, LocalState localState)
7997
static UnboundLambda getUnboundLambda(BoundLambda expr,
VariableState
variableState)