40 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (40)
FlowAnalysis\NullableWalker.cs (37)
347SetResult(expression, resultType: type.ToTypeWithState(), lvalueType: type); 355SetResult(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true); 2040return localType.ToTypeWithState().State; 2554overridingType.ToTypeWithState(), 2766NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2921return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).ToTypeWithState(), GetRValueAnnotations(symbol)).State; 3058return parameterType.ToTypeWithState(); 3222SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3575var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3718valueType = type.ToTypeWithState(); 3726SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 4190return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4405TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 5249resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].ToTypeWithState(), 5336SetResult(node, type.ToTypeWithState(), type); 9523TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 9536valueField.TypeWithAnnotations.ToTypeWithState(), 9556TypeWithState valueFieldType = ApplyUnconditionalAnnotations(valueField.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(valueField)); 9870TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 10025TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 10445underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 10729NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 10740return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 10750returnType.ToTypeWithState(); 11235var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 11460parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 11474new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 12086TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.ToTypeWithState(), memberAnnotations); 12129var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 12217var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 12437currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 12444TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 12481currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 12562resultForType = destinationType.ToTypeWithState(); 13002SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 13607SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 13723SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
504TrackNullableStateForAssignment(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();