40 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (40)
FlowAnalysis\NullableWalker_Patterns.cs (1)
508TrackNullableStateForAssignment(valueOpt: null, type, outputSlot, type.ToTypeWithState());
FlowAnalysis\NullableWalker.cs (37)
347SetResult(expression, resultType: type.ToTypeWithState(), lvalueType: type); 355SetResult(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true); 2057return localType.ToTypeWithState().State; 2578overridingType.ToTypeWithState(), 2797NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2952return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).ToTypeWithState(), GetRValueAnnotations(symbol)).State; 3089return parameterType.ToTypeWithState(); 3253SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3606var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3749valueType = type.ToTypeWithState(); 3757SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 4223return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4438TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 5273resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].ToTypeWithState(), 5360SetResult(node, type.ToTypeWithState(), type); 9573TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 9586valueField.TypeWithAnnotations.ToTypeWithState(), 9606TypeWithState valueFieldType = ApplyUnconditionalAnnotations(valueField.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(valueField)); 9919TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 10073TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 10493underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 10798NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 10809return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 10819returnType.ToTypeWithState(); 11304var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 11528parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 11543new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 12189TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.ToTypeWithState(), memberAnnotations); 12242var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 12330var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 12559currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 12566TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 12603currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 12684resultForType = destinationType.ToTypeWithState(); 13124SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 13729SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 13846SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
Symbols\NullableAnnotationExtensions.cs (1)
104var flowState = TypeWithAnnotations.Create(type, annotation).ToTypeWithState().State;
Symbols\TypeWithState.cs (1)
58return typeWithAnnotations.ToTypeWithState();