40 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (40)
FlowAnalysis\NullableWalker_Patterns.cs (1)
508TrackNullableStateForAssignment(valueOpt: null, type, outputSlot, type.ToTypeWithState());
FlowAnalysis\NullableWalker.cs (37)
347SetResult(expression, resultType: type.ToTypeWithState(), lvalueType: type); 355SetResult(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true); 2094return localType.ToTypeWithState().State; 2627overridingType.ToTypeWithState(), 2846NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 3001return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).ToTypeWithState(), GetRValueAnnotations(containingSlot, receiverTypeForMemberAccessOpt: null, symbol)).State; 3138return parameterType.ToTypeWithState(); 3302SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3655var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(containingSlotOpt: -1, receiverTypeForMemberAccessOpt: null, symbol: withExpr.CloneMethod)); 3798valueType = type.ToTypeWithState(); 3806SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 4272return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4488TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 5339resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].ToTypeWithState(), 5426SetResult(node, type.ToTypeWithState(), type); 9662TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 9675valueField.TypeWithAnnotations.ToTypeWithState(), 9695TypeWithState valueFieldType = ApplyUnconditionalAnnotations(valueField.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(containingSlotOpt: -1, receiverTypeForMemberAccessOpt: null, symbol: valueField)); 10008TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 10162TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 10582underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 10887NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 10898return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 10908returnType.ToTypeWithState(); 11400var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 11624parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 11639new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 12285TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.ToTypeWithState(), memberAnnotations); 12338var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(containingSlotOpt: -1, receiverTypeForMemberAccessOpt: receiverOpt?.Type, symbol: indexer)); 12426var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 12655currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 12662TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 12699currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 12780resultForType = destinationType.ToTypeWithState(); 13220SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 13833SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 13950SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
Symbols\NullableAnnotationExtensions.cs (1)
104var flowState = TypeWithAnnotations.Create(type, annotation).ToTypeWithState().State;
Symbols\TypeWithState.cs (1)
58return typeWithAnnotations.ToTypeWithState();