36 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (36)
FlowAnalysis\NullableWalker.cs (33)
322
SetResult(expression, resultType: type.
ToTypeWithState
(), lvalueType: type);
330
SetResult(expression, LvalueResultType.
ToTypeWithState
(), LvalueResultType, isLvalue: true);
1980
return localType.
ToTypeWithState
().State;
2494
overridingType.
ToTypeWithState
(),
2702
NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.
ToTypeWithState
().State;
2802
=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().
ToTypeWithState
(), GetRValueAnnotations(symbol)).State;
2938
return parameterType.
ToTypeWithState
();
3102
SetResult(node, GetAdjustedResult(type.
ToTypeWithState
(), slot), type);
3455
var resultState = ApplyUnconditionalAnnotations(resultType.
ToTypeWithState
(), GetRValueAnnotations(withExpr.CloneMethod));
3573
valueType = type.
ToTypeWithState
();
3581
SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.
ToTypeWithState
(), type), true);
3864
return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).
ToTypeWithState
().State;
4073
TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.
ToTypeWithState
(), valueSlot);
4897
SetResult(node, type.
ToTypeWithState
(), type);
8665
TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.
ToTypeWithState
(), valueFieldSlot);
8678
valueField.TypeWithAnnotations.
ToTypeWithState
(),
8951
TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.
ToTypeWithState
(), conversionOpt, conversionOperand);
9070
TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.
ToTypeWithState
(), valueSlot);
9461
underlyingOperandType = underlyingOperandTypeWithAnnotations.
ToTypeWithState
();
9590
NullableFlowState state = returnType.
ToTypeWithState
().State.Join(operandState);
9601
return type.GetNullableUnderlyingTypeWithAnnotations().
ToTypeWithState
();
9611
returnType.
ToTypeWithState
();
10070
var rValueType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), annotations);
10549
resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.
ToTypeWithState
();
10774
var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.
ToTypeWithState
(), GetRValueAnnotations(indexer));
10846
var resultType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), memberAnnotations);
11052
currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.
ToTypeWithState
();
11059
TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).
ToTypeWithState
();
11096
currentPropertyGetter.ReturnTypeWithAnnotations.
ToTypeWithState
(),
11187
resultForType = destinationType.
ToTypeWithState
();
11518
SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.
ToTypeWithState
());
12121
SetResult(node.Expression, typeWithAnnotations.
ToTypeWithState
(), typeWithAnnotations);
12186
SetResult(node, returnTypeWithAnnotations.
ToTypeWithState
(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
564
TrackNullableStateForAssignment(valueOpt: null, type, outputSlot, type.
ToTypeWithState
());
Symbols\NullableAnnotationExtensions.cs (1)
104
var flowState = TypeWithAnnotations.Create(type, annotation).
ToTypeWithState
().State;
Symbols\TypeWithState.cs (1)
58
return typeWithAnnotations.
ToTypeWithState
();