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