36 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (36)
FlowAnalysis\NullableWalker.cs (33)
322SetResult(expression, resultType: type.ToTypeWithState(), lvalueType: type); 330SetResult(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true); 1904return localType.ToTypeWithState().State; 2394overridingType.ToTypeWithState(), 2602NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2702=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().ToTypeWithState(), GetRValueAnnotations(symbol)).State; 2838return parameterType.ToTypeWithState(); 3002SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3321var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3439valueType = type.ToTypeWithState(); 3447SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 3713return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 3892TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 4715SetResult(node, type.ToTypeWithState(), type); 8438TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 8451valueField.TypeWithAnnotations.ToTypeWithState(), 8724TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 8843TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 9223underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 9352NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 9363return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 9373returnType.ToTypeWithState(); 9844var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 10323resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.ToTypeWithState(); 10548var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 10608var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 10797currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 10804TypeWithAnnotations.Create(node.EnumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 10841currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 10932resultForType = destinationType.ToTypeWithState(); 11262SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 11865SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 11930SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
526TrackNullableStateForAssignment(valueOpt: null, type, outputSlot, type.ToTypeWithState());
Symbols\NullableAnnotationExtensions.cs (1)
104var flowState = TypeWithAnnotations.Create(type, annotation).ToTypeWithState().State;
Symbols\TypeWithState.cs (1)
58return typeWithAnnotations.ToTypeWithState();