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); 1978return localType.ToTypeWithState().State; 2492overridingType.ToTypeWithState(), 2700NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2800=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().ToTypeWithState(), GetRValueAnnotations(symbol)).State; 2936return parameterType.ToTypeWithState(); 3100SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3453var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3571valueType = type.ToTypeWithState(); 3579SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 3862return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4069TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 4892SetResult(node, type.ToTypeWithState(), type); 8654TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 8667valueField.TypeWithAnnotations.ToTypeWithState(), 8940TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 9059TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 9450underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 9579NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 9590return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 9600returnType.ToTypeWithState(); 10059var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 10538resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.ToTypeWithState(); 10763var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 10835var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 11041currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 11048TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 11085currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 11176resultForType = destinationType.ToTypeWithState(); 11507SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 12110SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 12175SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
564TrackNullableStateForAssignment(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();