37 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (37)
FlowAnalysis\NullableWalker.cs (34)
328SetResult(expression, resultType: type.ToTypeWithState(), lvalueType: type); 336SetResult(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true); 2015return localType.ToTypeWithState().State; 2529overridingType.ToTypeWithState(), 2740NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2895return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).ToTypeWithState(), GetRValueAnnotations(symbol)).State; 3032return parameterType.ToTypeWithState(); 3197SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3550var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3668valueType = type.ToTypeWithState(); 3676SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 3959return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4168TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 4994SetResult(node, type.ToTypeWithState(), type); 8939TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 8952valueField.TypeWithAnnotations.ToTypeWithState(), 9225TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 9344TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 9735underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 9864NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 9875return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 9885returnType.ToTypeWithState(); 10370var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 10861resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.ToTypeWithState(); 11096TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.ToTypeWithState(), memberAnnotations); 11139var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 11212var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 11418currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 11425TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 11462currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 11553resultForType = destinationType.ToTypeWithState(); 11884SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 12487SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 12552SetResult(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();