23 references to GetState
Microsoft.CodeAnalysis.CSharp (23)
FlowAnalysis\NullableWalker.cs (20)
838
var memberState =
GetState
(ref state, slot);
1192
var parameterState =
GetState
(ref state, memberSlot);
1298
if (GetOrCreateSlot(parameter) is > 0 and var slot &&
GetState
(ref pendingReturn.StateWhenTrue, slot) !=
GetState
(ref pendingReturn.StateWhenFalse, slot))
1337
var parameterState =
GetState
(ref state, slot);
1393
var parameterState =
GetState
(ref stateWhen, slot);
1431
&&
GetState
(ref state, inputSlot).IsNotNull())
2813
GetState
(ref this.State, valueMemberSlot) :
2875
SetState(ref tryState, slot, newState.Join(
GetState
(ref tryState, slot)), useNotNullsAsDefault: true);
3414
SetState(ref state, slot,
GetState
(ref startingState, slot));
4502
operandState =
GetState
(ref this.State, operandSlot);
4773
if (!initializer.Type.IsValueType &&
GetState
(ref State, slot).MayBeNull())
6056
if (
GetState
(ref state, slot) == NullableFlowState.NotNull)
9116
NullableFlowState state =
GetState
(ref this.State, slot);
9600
valueFieldType = TypeWithState.Create(valueFieldType.Type,
GetState
(ref this.State, valueFieldSlot));
9640
SetState(ref this.State, valueFieldSlot,
GetState
(ref this.State, conversionOperandSlot));
11745
SetResultType(node, TypeWithState.Create(results[0].RValueType.Type,
GetState
(ref State, extensionReceiverSlot)));
11938
SetResultType(node, TypeWithState.Create(results[0].RValueType.Type,
GetState
(ref State, extensionReceiverSlot)));
12281
var state =
GetState
(ref this.State, slot);
13310
node.IsAddition ?
GetState
(ref this.State, memberSlot).Meet(ResultType.State) : NullableFlowState.MaybeNull);
FlowAnalysis\NullableWalker_Patterns.cs (3)
524
var inputState =
GetState
(ref this.State, inputSlot);
556
var inputMaybeNull =
GetState
(ref this.StateWhenTrue, inputSlot).MayBeNull();
629
var tempState =
GetState
(ref this.State, tempSlot);