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