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); 2096return localType.ToTypeWithState().State; 2629overridingType.ToTypeWithState(), 2848NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 3003return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).ToTypeWithState(), GetRValueAnnotations(containingSlot, receiverTypeForMemberAccessOpt: null, symbol)).State; 3140return parameterType.ToTypeWithState(); 3304SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3657var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(containingSlotOpt: -1, receiverTypeForMemberAccessOpt: null, symbol: withExpr.CloneMethod)); 3800valueType = type.ToTypeWithState(); 3808SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 4274return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4490TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 5341resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].ToTypeWithState(), 5428SetResult(node, type.ToTypeWithState(), type); 9664TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 9677valueField.TypeWithAnnotations.ToTypeWithState(), 9697TypeWithState valueFieldType = ApplyUnconditionalAnnotations(valueField.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(containingSlotOpt: -1, receiverTypeForMemberAccessOpt: null, symbol: valueField)); 10030TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 10184TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 10604underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 10930NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 10941return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 10951returnType.ToTypeWithState(); 11443var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 11667parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 11682new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 12328TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.ToTypeWithState(), memberAnnotations); 12381var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(containingSlotOpt: -1, receiverTypeForMemberAccessOpt: receiverOpt?.Type, symbol: indexer)); 12469var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 12698currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 12705TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 12742currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 12823resultForType = destinationType.ToTypeWithState(); 13263SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 13876SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 13993SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
Symbols\NullableAnnotationExtensions.cs (1)
104var flowState = TypeWithAnnotations.Create(type, annotation).ToTypeWithState().State;
Symbols\TypeWithState.cs (1)
58return typeWithAnnotations.ToTypeWithState();