20 references to UserDefinedConversionResultKind
Microsoft.CodeAnalysis.CSharp (20)
Binder\Semantics\Conversions\Conversion.cs (12)
149
_kind = conversionResult.Kind ==
UserDefinedConversionResultKind
.NoApplicableOperators
153
_uncommonData = conversionResult.Kind ==
UserDefinedConversionResultKind
.NoApplicableOperators && conversionResult.Results.IsEmpty
492
if (conversionResult.Kind ==
UserDefinedConversionResultKind
.Valid)
518
if (conversionResult.Kind ==
UserDefinedConversionResultKind
.Valid)
589
(_uncommonData as MethodUncommonData)?._conversionResult.Kind ==
UserDefinedConversionResultKind
.Valid;
1052
case
UserDefinedConversionResultKind
.Valid:
1054
case
UserDefinedConversionResultKind
.Ambiguous:
1055
case
UserDefinedConversionResultKind
.NoBestSourceType:
1056
case
UserDefinedConversionResultKind
.NoBestTargetType:
1058
case
UserDefinedConversionResultKind
.NoApplicableOperators:
1114
if (_uncommonData is MethodUncommonData { _conversionResult: { Kind: not
UserDefinedConversionResultKind
.NoApplicableOperators } conversionResult })
1132
if (_uncommonData is MethodUncommonData { _conversionResult: { Kind:
UserDefinedConversionResultKind
.Valid } conversionResult })
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1738
if (result.Kind ==
UserDefinedConversionResultKind
.Valid)
Binder\Semantics\Conversions\UserDefinedConversionResult.cs (7)
27
public readonly
UserDefinedConversionResultKind
Kind;
32
UserDefinedConversionResultKind
.NoApplicableOperators,
40
UserDefinedConversionResultKind
.NoBestSourceType,
48
UserDefinedConversionResultKind
.NoBestTargetType,
56
UserDefinedConversionResultKind
.Ambiguous,
64
UserDefinedConversionResultKind
.Valid,
70
UserDefinedConversionResultKind
kind,