38 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (38)
FlowAnalysis\NullableWalker.cs (35)
298SetResult(expression, resultType: type.ToTypeWithState(), lvalueType: type); 306SetResult(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true); 1869return localType.ToTypeWithState().State; 2364overridingType.ToTypeWithState(), 2572NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2658=> ApplyUnconditionalAnnotations(symbol.GetTypeOrReturnType().ToTypeWithState(), GetRValueAnnotations(symbol)).State; 2797return parameterType.ToTypeWithState(); 2961SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3193var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3311valueType = type.ToTypeWithState(); 3319SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 3608TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 4246TrackAnalyzedNullabilityThroughConversionGroup(inferredType.ToTypeWithState(), expressions[i] as BoundConversion, expressionsNoConversions[i]); 4340resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].ToTypeWithState(), 7739TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 7752valueField.TypeWithAnnotations.ToTypeWithState(), 8013TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 8131TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 8495underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 8621NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 8632return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 8642returnType.ToTypeWithState(); 9113var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 9338parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitArgumentResult(new VisitResult(variable.Type.ToTypeWithState(), variable.Type), stateForLambda: default), 9352new VisitArgumentResult(new VisitResult(variable.Type.ToTypeWithState(), variable.Type), stateForLambda: default), 9593resultOfIncrementType = incrementOperator.ReturnTypeWithAnnotations.ToTypeWithState(); 9833var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 9893var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 10081currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 10088TypeWithAnnotations.Create(node.EnumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 10108currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 10198resultForType = destinationType.ToTypeWithState(); 10528SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 11133SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 11198SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
524TrackNullableStateForAssignment(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();