36 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (36)
FlowAnalysis\NullableWalker.cs (33)
328
SetResult(expression, resultType: type.
ToTypeWithState
(), lvalueType: type);
336
SetResult(expression, LvalueResultType.
ToTypeWithState
(), LvalueResultType, isLvalue: true);
2000
return localType.
ToTypeWithState
().State;
2514
overridingType.
ToTypeWithState
(),
2725
NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.
ToTypeWithState
().State;
2880
return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).
ToTypeWithState
(), GetRValueAnnotations(symbol)).State;
3017
return parameterType.
ToTypeWithState
();
3181
SetResult(node, GetAdjustedResult(type.
ToTypeWithState
(), slot), type);
3534
var resultState = ApplyUnconditionalAnnotations(resultType.
ToTypeWithState
(), GetRValueAnnotations(withExpr.CloneMethod));
3652
valueType = type.
ToTypeWithState
();
3660
SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.
ToTypeWithState
(), type), true);
3943
return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).
ToTypeWithState
().State;
4152
TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.
ToTypeWithState
(), valueSlot);
4978
SetResult(node, type.
ToTypeWithState
(), type);
8756
TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.
ToTypeWithState
(), valueFieldSlot);
8769
valueField.TypeWithAnnotations.
ToTypeWithState
(),
9044
TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.
ToTypeWithState
(), conversionOpt, conversionOperand);
9163
TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.
ToTypeWithState
(), valueSlot);
9554
underlyingOperandType = underlyingOperandTypeWithAnnotations.
ToTypeWithState
();
9683
NullableFlowState state = returnType.
ToTypeWithState
().State.Join(operandState);
9694
return type.GetNullableUnderlyingTypeWithAnnotations().
ToTypeWithState
();
9704
returnType.
ToTypeWithState
();
10178
var rValueType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), annotations);
10658
resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.
ToTypeWithState
();
10883
var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.
ToTypeWithState
(), GetRValueAnnotations(indexer));
10955
var resultType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), memberAnnotations);
11161
currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.
ToTypeWithState
();
11168
TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).
ToTypeWithState
();
11205
currentPropertyGetter.ReturnTypeWithAnnotations.
ToTypeWithState
(),
11296
resultForType = destinationType.
ToTypeWithState
();
11627
SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.
ToTypeWithState
());
12230
SetResult(node.Expression, typeWithAnnotations.
ToTypeWithState
(), typeWithAnnotations);
12295
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
();