39 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (39)
FlowAnalysis\NullableWalker.cs (36)
328
SetResult(expression, resultType: type.
ToTypeWithState
(), lvalueType: type);
336
SetResult(expression, LvalueResultType.
ToTypeWithState
(), LvalueResultType, isLvalue: true);
2021
return localType.
ToTypeWithState
().State;
2535
overridingType.
ToTypeWithState
(),
2746
NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.
ToTypeWithState
().State;
2901
return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).
ToTypeWithState
(), GetRValueAnnotations(symbol)).State;
3038
return parameterType.
ToTypeWithState
();
3203
SetResult(node, GetAdjustedResult(type.
ToTypeWithState
(), slot), type);
3556
var resultState = ApplyUnconditionalAnnotations(resultType.
ToTypeWithState
(), GetRValueAnnotations(withExpr.CloneMethod));
3674
valueType = type.
ToTypeWithState
();
3682
SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.
ToTypeWithState
(), type), true);
4014
return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).
ToTypeWithState
().State;
4228
TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.
ToTypeWithState
(), valueSlot);
4968
resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].
ToTypeWithState
(),
5055
SetResult(node, type.
ToTypeWithState
(), type);
9092
TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.
ToTypeWithState
(), valueFieldSlot);
9105
valueField.TypeWithAnnotations.
ToTypeWithState
(),
9378
TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.
ToTypeWithState
(), conversionOpt, conversionOperand);
9497
TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.
ToTypeWithState
(), valueSlot);
9896
underlyingOperandType = underlyingOperandTypeWithAnnotations.
ToTypeWithState
();
10025
NullableFlowState state = returnType.
ToTypeWithState
().State.Join(operandState);
10036
return type.GetNullableUnderlyingTypeWithAnnotations().
ToTypeWithState
();
10046
returnType.
ToTypeWithState
();
10531
var rValueType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), annotations);
10758
parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.
ToTypeWithState
(), variable.Type),
10772
new VisitResult(variable.Type.
ToTypeWithState
(), variable.Type),
11368
TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.
ToTypeWithState
(), memberAnnotations);
11411
var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.
ToTypeWithState
(), GetRValueAnnotations(indexer));
11484
var resultType = ApplyUnconditionalAnnotations(type.
ToTypeWithState
(), memberAnnotations);
11696
currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.
ToTypeWithState
();
11703
TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).
ToTypeWithState
();
11740
currentPropertyGetter.ReturnTypeWithAnnotations.
ToTypeWithState
(),
11831
resultForType = destinationType.
ToTypeWithState
();
12266
SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.
ToTypeWithState
());
12869
SetResult(node.Expression, typeWithAnnotations.
ToTypeWithState
(), typeWithAnnotations);
12934
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
();