1 write to ToType
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\Conversions\UserDefinedConversionAnalysis.cs (1)
81
this.
ToType
= toType;
11 references to ToType
Microsoft.CodeAnalysis.CSharp (11)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1742
switchGoverningType = analysis.
ToType
;
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (3)
463
System.Func<UserDefinedConversionAnalysis, bool> isValid = conv => IsEncompassedBy(conv.
ToType
, target, ref inLambdaUseSiteInfo);
466
var result = MostEncompassingType(u, isValid, conv => conv.
ToType
, ref inLambdaUseSiteInfo);
472
return MostEncompassedType(u, conv => conv.
ToType
, ref useSiteInfo);
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (4)
404
return MostEncompassingType(u, conv => conv.
ToType
, ref useSiteInfo);
415
if (!TypeSymbol.Equals(conv.
ToType
, conv.Operator.ReturnType, TypeCompareKind.ConsiderEverything2))
425
return MostSpecificConversionOperator(conv => TypeSymbol.Equals(conv.FromType, sx, TypeCompareKind.ConsiderEverything2) && TypeSymbol.Equals(conv.
ToType
, tx, TypeCompareKind.ConsiderEverything2), u);
968
int? best = MostSpecificConversionOperator(conv => conv.
ToType
.IsValidV6SwitchGoverningType(isTargetTypeOfUserDefinedOp: true), u);
FlowAnalysis\NullableWalker.cs (1)
9436
TypeWithAnnotations.Create(conversion.BestUserDefinedConversionAnalysis!.
ToType
),
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
913
if (!TypeSymbol.Equals(userDefined.Type, conversion.BestUserDefinedConversionAnalysis.
ToType
, TypeCompareKind.ConsiderEverything2))
917
conversion.BestUserDefinedConversionAnalysis.
ToType
,