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); 2021return localType.ToTypeWithState().State; 2535overridingType.ToTypeWithState(), 2746NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2901return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).ToTypeWithState(), GetRValueAnnotations(symbol)).State; 3038return parameterType.ToTypeWithState(); 3203SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3556var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3674valueType = type.ToTypeWithState(); 3682SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 4014return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4228TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 4968resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].ToTypeWithState(), 5055SetResult(node, type.ToTypeWithState(), type); 9092TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 9105valueField.TypeWithAnnotations.ToTypeWithState(), 9378TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 9497TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 9896underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 10025NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 10036return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 10046returnType.ToTypeWithState(); 10531var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 10758parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 10772new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 11368TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.ToTypeWithState(), memberAnnotations); 11411var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 11484var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 11696currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 11703TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 11740currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 11831resultForType = destinationType.ToTypeWithState(); 12266SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 12869SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 12934SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
566TrackNullableStateForAssignment(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();