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()) 2822GetState(ref this.State, valueMemberSlot) : 2884SetState(ref tryState, slot, newState.Join(GetState(ref tryState, slot)), useNotNullsAsDefault: true); 3423SetState(ref state, slot, GetState(ref startingState, slot)); 4511operandState = GetState(ref this.State, operandSlot); 4719if (!initializer.Type.IsValueType && GetState(ref State, slot).MayBeNull()) 6054if (GetState(ref state, slot) == NullableFlowState.NotNull) 9143NullableFlowState state = GetState(ref this.State, slot); 9627valueFieldType = TypeWithState.Create(valueFieldType.Type, GetState(ref this.State, valueFieldSlot)); 9667SetState(ref this.State, valueFieldSlot, GetState(ref this.State, conversionOperandSlot)); 11773SetResultType(node, TypeWithState.Create(results[0].RValueType.Type, GetState(ref State, extensionReceiverSlot))); 11966SetResultType(node, TypeWithState.Create(results[0].RValueType.Type, GetState(ref State, extensionReceiverSlot))); 12349var state = GetState(ref this.State, slot); 13378node.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);