39 references to ToTypeWithState
Microsoft.CodeAnalysis.CSharp (39)
FlowAnalysis\NullableWalker.cs (36)
347SetResult(expression, resultType: type.ToTypeWithState(), lvalueType: type); 355SetResult(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true); 2039return localType.ToTypeWithState().State; 2553overridingType.ToTypeWithState(), 2764NullableFlowState value = isDefaultValue ? NullableFlowState.MaybeNull : fieldOrPropertyType.ToTypeWithState().State; 2919return ApplyUnconditionalAnnotations(GetTypeOrReturnTypeWithAnnotations(symbol).ToTypeWithState(), GetRValueAnnotations(symbol)).State; 3056return parameterType.ToTypeWithState(); 3221SetResult(node, GetAdjustedResult(type.ToTypeWithState(), slot), type); 3574var resultState = ApplyUnconditionalAnnotations(resultType.ToTypeWithState(), GetRValueAnnotations(withExpr.CloneMethod)); 3690valueType = type.ToTypeWithState(); 3698SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 4030return ApplyUnconditionalAnnotations(createMethod.ReturnTypeWithAnnotations, annotations).ToTypeWithState().State; 4243TrackNullableStateOfNullableValue(slot, type, operand, underlyingType.ToTypeWithState(), valueSlot); 5020resultTypes[i] = walker.VisitConversion(conversionOpt: null, placeholder, conversion, bestTypeWithObliviousAnnotation, resultTypes[i].ToTypeWithState(), 5107SetResult(node, type.ToTypeWithState(), type); 9231TrackNullableStateOfNullableValue(targetFieldSlot, targetField.Type, null, valueField.TypeWithAnnotations.ToTypeWithState(), valueFieldSlot); 9244valueField.TypeWithAnnotations.ToTypeWithState(), 9517TrackAnalyzedNullabilityThroughConversionGroup(targetTypeWithNullability.ToTypeWithState(), conversionOpt, conversionOperand); 9636TrackNullableStateOfNullableValue(containingSlot, targetType, conversionOperand, underlyingType.ToTypeWithState(), valueSlot); 10035underlyingOperandType = underlyingOperandTypeWithAnnotations.ToTypeWithState(); 10164NullableFlowState state = returnType.ToTypeWithState().State.Join(operandState); 10175return type.GetNullableUnderlyingTypeWithAnnotations().ToTypeWithState(); 10185returnType.ToTypeWithState(); 10670var rValueType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), annotations); 10895parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 10909new VisitResult(variable.Type.ToTypeWithState(), variable.Type), 11503TypeWithState typeWithState = ApplyUnconditionalAnnotations(typeWithAnnotations.ToTypeWithState(), memberAnnotations); 11546var resultType = ApplyUnconditionalAnnotations(indexer.TypeWithAnnotations.ToTypeWithState(), GetRValueAnnotations(indexer)); 11619var resultType = ApplyUnconditionalAnnotations(type.ToTypeWithState(), memberAnnotations); 11828currentPropertyGetterTypeWithState = arrayType.ElementTypeWithAnnotations.ToTypeWithState(); 11835TypeWithAnnotations.Create(enumeratorInfoOpt.ElementType, NullableAnnotation.NotAnnotated).ToTypeWithState(); 11872currentPropertyGetter.ReturnTypeWithAnnotations.ToTypeWithState(), 11963resultForType = destinationType.ToTypeWithState(); 12405SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState()); 13008SetResult(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations); 13073SetResult(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (1)
566TrackNullableStateForAssignment(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();