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); 1980return localType.ToTypeWithState().State; 2494overridingType.ToTypeWithState(), 2702NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2802=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().ToTypeWithState(), GetRValueAnnotations(symbol)).State; 2938return parameterType.ToTypeWithState(); 3102SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3455var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3573valueType = type.ToTypeWithState(); 3581SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 3864return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4073TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 4897SetResult(node, type.ToTypeWithState(), type); 8665TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 8678valueField.TypeWithAnnotations.ToTypeWithState(), 8951TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 9070TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 9461underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 9590NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 9601return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 9611returnType.ToTypeWithState(); 10070var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 10549resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.ToTypeWithState(); 10774var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 10846var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 11052currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 11059TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 11096currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 11187resultForType = destinationType.ToTypeWithState(); 11518SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 12121SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 12186SetResult(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();