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