38 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (38)
FlowAnalysis\NullableWalker.cs (35)
298
SetResult(expression, resultType: type.
ToTypeWithState
(), lvalueType: type);
306
SetResult(expression, LvalueResultType.
ToTypeWithState
(), LvalueResultType, isLvalue: true);
1869
return localType.
ToTypeWithState
().State;
2364
overridingType.
ToTypeWithState
(),
2572
NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.
ToTypeWithState
().State;
2658
=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().
ToTypeWithState
(), GetRValueAnnotations(symbol)).State;
2797
return parameterType.
ToTypeWithState
();
2961
SetResult(node, GetAdjustedResult(type.
ToTypeWithState
(), slot), type);
3193
var resultState = ApplyUnconditionalAnnotations(resultType.
ToTypeWithState
(), GetRValueAnnotations(withExpr.CloneMethod));
3311
valueType = type.
ToTypeWithState
();
3319
SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.
ToTypeWithState
(), type), true);
3608
TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.
ToTypeWithState
(), valueSlot);
4246
TrackAnalyzedNullabilityThroughConversionGroup(inferredType.
ToTypeWithState
(), expressions[i] as BoundConversion, expressionsNoConversions[i]);
4340
resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].
ToTypeWithState
(),
7739
TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.
ToTypeWithState
(), valueFieldSlot);
7752
valueField.TypeWithAnnotations.
ToTypeWithState
(),
8013
TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.
ToTypeWithState
(), conversionOpt, conversionOperand);
8131
TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.
ToTypeWithState
(), valueSlot);
8495
underlyingOperandType = underlyingOperandTypeWithAnnotations.
ToTypeWithState
();
8621
NullableFlowState state = returnType.
ToTypeWithState
().State.Join(operandState);
8632
return type.GetNullableUnderlyingTypeWithAnnotations().
ToTypeWithState
();
8642
returnType.
ToTypeWithState
();
9113
var rValueType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), annotations);
9338
parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitArgumentResult(new VisitResult(variable.Type.
ToTypeWithState
(), variable.Type), stateForLambda: default),
9352
new VisitArgumentResult(new VisitResult(variable.Type.
ToTypeWithState
(), variable.Type), stateForLambda: default),
9593
resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.
ToTypeWithState
();
9833
var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.
ToTypeWithState
(), GetRValueAnnotations(indexer));
9893
var resultType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), memberAnnotations);
10081
currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.
ToTypeWithState
();
10088
TypeWithAnnotations.Create(node.EnumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).
ToTypeWithState
();
10108
currentPropertyGetter.ReturnTypeWithAnnotations.
ToTypeWithState
(),
10198
resultForType = destinationType.
ToTypeWithState
();
10528
SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.
ToTypeWithState
());
11133
SetResult(node.Expression, typeWithAnnotations.
ToTypeWithState
(), typeWithAnnotations);
11198
SetResult(node, returnTypeWithAnnotations.
ToTypeWithState
(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
524
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
();