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);
1978
return localType.
ToTypeWithState
().State;
2492
overridingType.
ToTypeWithState
(),
2700
NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.
ToTypeWithState
().State;
2800
=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().
ToTypeWithState
(), GetRValueAnnotations(symbol)).State;
2936
return parameterType.
ToTypeWithState
();
3100
SetResult(node, GetAdjustedResult(type.
ToTypeWithState
(), slot), type);
3453
var resultState = ApplyUnconditionalAnnotations(resultType.
ToTypeWithState
(), GetRValueAnnotations(withExpr.CloneMethod));
3571
valueType = type.
ToTypeWithState
();
3579
SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.
ToTypeWithState
(), type), true);
3862
return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).
ToTypeWithState
().State;
4069
TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.
ToTypeWithState
(), valueSlot);
4892
SetResult(node, type.
ToTypeWithState
(), type);
8654
TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.
ToTypeWithState
(), valueFieldSlot);
8667
valueField.TypeWithAnnotations.
ToTypeWithState
(),
8940
TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.
ToTypeWithState
(), conversionOpt, conversionOperand);
9059
TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.
ToTypeWithState
(), valueSlot);
9450
underlyingOperandType = underlyingOperandTypeWithAnnotations.
ToTypeWithState
();
9579
NullableFlowState state = returnType.
ToTypeWithState
().State.Join(operandState);
9590
return type.GetNullableUnderlyingTypeWithAnnotations().
ToTypeWithState
();
9600
returnType.
ToTypeWithState
();
10059
var rValueType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), annotations);
10538
resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.
ToTypeWithState
();
10763
var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.
ToTypeWithState
(), GetRValueAnnotations(indexer));
10835
var resultType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), memberAnnotations);
11041
currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.
ToTypeWithState
();
11048
TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).
ToTypeWithState
();
11085
currentPropertyGetter.ReturnTypeWithAnnotations.
ToTypeWithState
(),
11176
resultForType = destinationType.
ToTypeWithState
();
11507
SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.
ToTypeWithState
());
12110
SetResult(node.Expression, typeWithAnnotations.
ToTypeWithState
(), typeWithAnnotations);
12175
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
();