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);
1917
return localType.
ToTypeWithState
().State;
2431
overridingType.
ToTypeWithState
(),
2639
NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.
ToTypeWithState
().State;
2739
=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().
ToTypeWithState
(), GetRValueAnnotations(symbol)).State;
2875
return parameterType.
ToTypeWithState
();
3039
SetResult(node, GetAdjustedResult(type.
ToTypeWithState
(), slot), type);
3392
var resultState = ApplyUnconditionalAnnotations(resultType.
ToTypeWithState
(), GetRValueAnnotations(withExpr.CloneMethod));
3510
valueType = type.
ToTypeWithState
();
3518
SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.
ToTypeWithState
(), type), true);
3801
return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).
ToTypeWithState
().State;
4008
TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.
ToTypeWithState
(), valueSlot);
4831
SetResult(node, type.
ToTypeWithState
(), type);
8593
TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.
ToTypeWithState
(), valueFieldSlot);
8606
valueField.TypeWithAnnotations.
ToTypeWithState
(),
8879
TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.
ToTypeWithState
(), conversionOpt, conversionOperand);
8998
TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.
ToTypeWithState
(), valueSlot);
9389
underlyingOperandType = underlyingOperandTypeWithAnnotations.
ToTypeWithState
();
9518
NullableFlowState state = returnType.
ToTypeWithState
().State.Join(operandState);
9529
return type.GetNullableUnderlyingTypeWithAnnotations().
ToTypeWithState
();
9539
returnType.
ToTypeWithState
();
9998
var rValueType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), annotations);
10477
resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.
ToTypeWithState
();
10702
var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.
ToTypeWithState
(), GetRValueAnnotations(indexer));
10774
var resultType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), memberAnnotations);
10980
currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.
ToTypeWithState
();
10987
TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).
ToTypeWithState
();
11024
currentPropertyGetter.ReturnTypeWithAnnotations.
ToTypeWithState
(),
11115
resultForType = destinationType.
ToTypeWithState
();
11446
SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.
ToTypeWithState
());
12049
SetResult(node.Expression, typeWithAnnotations.
ToTypeWithState
(), typeWithAnnotations);
12114
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
();