39 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (39)
FlowAnalysis\NullableWalker.cs (36)
328SetResult(expression, resultType: type.ToTypeWithState(), lvalueType: type); 336SetResult(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true); 2015return localType.ToTypeWithState().State; 2529overridingType.ToTypeWithState(), 2740NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2895return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).ToTypeWithState(), GetRValueAnnotations(symbol)).State; 3032return parameterType.ToTypeWithState(); 3197SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3550var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3668valueType = type.ToTypeWithState(); 3676SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 4008return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4222TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 4961resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].ToTypeWithState(), 5048SetResult(node, type.ToTypeWithState(), type); 9088TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 9101valueField.TypeWithAnnotations.ToTypeWithState(), 9374TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 9493TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 9884underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 10013NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 10024return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 10034returnType.ToTypeWithState(); 10519var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 10746parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 10760new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 11350TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.ToTypeWithState(), memberAnnotations); 11393var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 11466var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 11672currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 11679TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 11716currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 11807resultForType = destinationType.ToTypeWithState(); 12242SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 12845SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 12910SetResult(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();