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); 2057return localType.ToTypeWithState().State; 2592overridingType.ToTypeWithState(), 2811NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2966return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).ToTypeWithState(), GetRValueAnnotations(symbol)).State; 3103return parameterType.ToTypeWithState(); 3267SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3620var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3763valueType = type.ToTypeWithState(); 3771SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 4237return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4452TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 5287resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].ToTypeWithState(), 5374SetResult(node, type.ToTypeWithState(), type); 9587TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 9600valueField.TypeWithAnnotations.ToTypeWithState(), 9620TypeWithState valueFieldType = ApplyUnconditionalAnnotations(valueField.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(valueField)); 9933TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 10087TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 10507underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 10808NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 10819return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 10829returnType.ToTypeWithState(); 11314var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 11538parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 11553new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 12199TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.ToTypeWithState(), memberAnnotations); 12252var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 12340var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 12560currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 12567TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 12604currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 12685resultForType = destinationType.ToTypeWithState(); 13125SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 13730SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 13847SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
508TrackNullableStateForAssignment(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();