36 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (36)
FlowAnalysis\NullableWalker.cs (33)
322SetResult(expression, resultType: type.ToTypeWithState(), lvalueType: type); 330SetResult(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true); 1917return localType.ToTypeWithState().State; 2431overridingType.ToTypeWithState(), 2639NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2739=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().ToTypeWithState(), GetRValueAnnotations(symbol)).State; 2875return parameterType.ToTypeWithState(); 3039SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3392var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3510valueType = type.ToTypeWithState(); 3518SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 3801return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4008TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 4831SetResult(node, type.ToTypeWithState(), type); 8593TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 8606valueField.TypeWithAnnotations.ToTypeWithState(), 8879TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 8998TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 9389underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 9518NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 9529return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 9539returnType.ToTypeWithState(); 9998var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 10477resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.ToTypeWithState(); 10702var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 10774var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 10980currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 10987TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 11024currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 11115resultForType = destinationType.ToTypeWithState(); 11446SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 12049SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 12114SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
564TrackNullableStateForAssignment(valueOpt: null, type, outputSlot, type.ToTypeWithState());
Symbols\NullableAnnotationExtensions.cs (1)
104var flowState = TypeWithAnnotations.Create(type, annotation).ToTypeWithState().State;
Symbols\TypeWithState.cs (1)
58return typeWithAnnotations.ToTypeWithState();