5 instantiations of UserDefinedConversionResult
Microsoft.CodeAnalysis.CSharp (5)
Binder\Semantics\Conversions\UserDefinedConversionResult.cs (5)
31
return new
UserDefinedConversionResult
(
39
return new
UserDefinedConversionResult
(
47
return new
UserDefinedConversionResult
(
55
return new
UserDefinedConversionResult
(
63
return new
UserDefinedConversionResult
(
35 references to UserDefinedConversionResult
Microsoft.CodeAnalysis.CSharp (35)
Binder\Semantics\Conversions\Conversion.cs (8)
35
conversionResult:
UserDefinedConversionResult
.NoApplicableOperators(ImmutableArray<UserDefinedConversionAnalysis>.Empty),
41
UserDefinedConversionResult
conversionResult,
57
internal readonly
UserDefinedConversionResult
_conversionResult;
147
internal Conversion(
UserDefinedConversionResult
conversionResult, bool isImplicit)
491
var
conversionResult = methodUncommonData._conversionResult;
517
var
conversionResult = methodUncommonData._conversionResult;
1048
var
conversionResult = (_uncommonData as MethodUncommonData)?._conversionResult ?? default(
UserDefinedConversionResult
);
Binder\Semantics\Conversions\ConversionsBase.cs (3)
784
var
conversionResult = AnalyzeImplicitUserDefinedConversions(sourceExpression, source, destination, ref useSiteInfo);
874
UserDefinedConversionResult
conversionResult = AnalyzeExplicitUserDefinedConversions(sourceExpression, source, destination, isChecked: isChecked, ref useSiteInfo);
1736
UserDefinedConversionResult
result = AnalyzeImplicitUserDefinedConversionForV6SwitchGoverningType(sourceType, ref useSiteInfo);
Binder\Semantics\Conversions\UserDefinedConversionResult.cs (5)
29
public static
UserDefinedConversionResult
NoApplicableOperators(ImmutableArray<UserDefinedConversionAnalysis> results)
37
public static
UserDefinedConversionResult
NoBestSourceType(ImmutableArray<UserDefinedConversionAnalysis> results)
45
public static
UserDefinedConversionResult
NoBestTargetType(ImmutableArray<UserDefinedConversionAnalysis> results)
53
public static
UserDefinedConversionResult
Ambiguous(ImmutableArray<UserDefinedConversionAnalysis> results)
61
public static
UserDefinedConversionResult
Valid(ImmutableArray<UserDefinedConversionAnalysis> results, int best)
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (6)
20
private
UserDefinedConversionResult
AnalyzeExplicitUserDefinedConversions(
48
return
UserDefinedConversionResult
.NoApplicableOperators(u);
55
return
UserDefinedConversionResult
.NoBestSourceType(u);
62
return
UserDefinedConversionResult
.NoBestTargetType(u);
68
return
UserDefinedConversionResult
.Ambiguous(u);
71
return
UserDefinedConversionResult
.Valid(u, best.Value);
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (9)
25
private
UserDefinedConversionResult
AnalyzeImplicitUserDefinedConversions(
92
return
UserDefinedConversionResult
.NoApplicableOperators(u);
99
return
UserDefinedConversionResult
.NoBestSourceType(u);
106
return
UserDefinedConversionResult
.NoBestTargetType(u);
112
return
UserDefinedConversionResult
.Ambiguous(u);
115
return
UserDefinedConversionResult
.Valid(u, best.Value);
894
protected
UserDefinedConversionResult
AnalyzeImplicitUserDefinedConversionForV6SwitchGoverningType(TypeSymbol source, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
976
return
UserDefinedConversionResult
.Valid(u, best.Value);
979
return
UserDefinedConversionResult
.NoApplicableOperators(u);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
1782
var
result =
UserDefinedConversionResult
.Valid(ImmutableArray.Create<UserDefinedConversionAnalysis>(analysis), 0);
1882
var
result =
UserDefinedConversionResult
.Valid(ImmutableArray.Create<UserDefinedConversionAnalysis>(analysis), 0);