39 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (39)
FlowAnalysis\NullableWalker.cs (36)
347
SetResult(expression, resultType: type.
ToTypeWithState
(), lvalueType: type);
355
SetResult(expression, LvalueResultType.
ToTypeWithState
(), LvalueResultType, isLvalue: true);
2039
return localType.
ToTypeWithState
().State;
2553
overridingType.
ToTypeWithState
(),
2764
NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.
ToTypeWithState
().State;
2919
return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).
ToTypeWithState
(), GetRValueAnnotations(symbol)).State;
3056
return parameterType.
ToTypeWithState
();
3221
SetResult(node, GetAdjustedResult(type.
ToTypeWithState
(), slot), type);
3574
var resultState = ApplyUnconditionalAnnotations(resultType.
ToTypeWithState
(), GetRValueAnnotations(withExpr.CloneMethod));
3690
valueType = type.
ToTypeWithState
();
3698
SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.
ToTypeWithState
(), type), true);
4030
return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).
ToTypeWithState
().State;
4243
TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.
ToTypeWithState
(), valueSlot);
5020
resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].
ToTypeWithState
(),
5107
SetResult(node, type.
ToTypeWithState
(), type);
9231
TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.
ToTypeWithState
(), valueFieldSlot);
9244
valueField.TypeWithAnnotations.
ToTypeWithState
(),
9517
TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.
ToTypeWithState
(), conversionOpt, conversionOperand);
9636
TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.
ToTypeWithState
(), valueSlot);
10035
underlyingOperandType = underlyingOperandTypeWithAnnotations.
ToTypeWithState
();
10164
NullableFlowState state = returnType.
ToTypeWithState
().State.Join(operandState);
10175
return type.GetNullableUnderlyingTypeWithAnnotations().
ToTypeWithState
();
10185
returnType.
ToTypeWithState
();
10670
var rValueType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), annotations);
10895
parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.
ToTypeWithState
(), variable.Type),
10909
new VisitResult(variable.Type.
ToTypeWithState
(), variable.Type),
11503
TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.
ToTypeWithState
(), memberAnnotations);
11546
var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.
ToTypeWithState
(), GetRValueAnnotations(indexer));
11619
var resultType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), memberAnnotations);
11828
currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.
ToTypeWithState
();
11835
TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).
ToTypeWithState
();
11872
currentPropertyGetter.ReturnTypeWithAnnotations.
ToTypeWithState
(),
11963
resultForType = destinationType.
ToTypeWithState
();
12405
SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.
ToTypeWithState
());
13008
SetResult(node.Expression, typeWithAnnotations.
ToTypeWithState
(), typeWithAnnotations);
13073
SetResult(node, returnTypeWithAnnotations.
ToTypeWithState
(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
566
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
();