2 instantiations of UserDefinedConversionAnalysis
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\Conversions\UserDefinedConversionAnalysis.cs (2)
38return new UserDefinedConversionAnalysis( 56return new UserDefinedConversionAnalysis(
49 references to UserDefinedConversionAnalysis
Microsoft.CodeAnalysis.CSharp (49)
Binder\Semantics\Conversions\Conversion.cs (8)
35conversionResult: UserDefinedConversionResult.NoApplicableOperators(ImmutableArray<UserDefinedConversionAnalysis>.Empty), 494UserDefinedConversionAnalysis analysis = conversionResult.Results[conversionResult.Best]; 520UserDefinedConversionAnalysis analysis = conversionResult.Results[conversionResult.Best]; 1083UserDefinedConversionAnalysis? best = BestUserDefinedConversionAnalysis; 1095UserDefinedConversionAnalysis? best = BestUserDefinedConversionAnalysis; 1117foreach (var analysis in conversionResult.Results) 1128internal UserDefinedConversionAnalysis? BestUserDefinedConversionAnalysis 1134UserDefinedConversionAnalysis analysis = conversionResult.Results[conversionResult.Best];
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1740UserDefinedConversionAnalysis analysis = result.Results[result.Best];
Binder\Semantics\Conversions\UserDefinedConversionAnalysis.cs (2)
30public static UserDefinedConversionAnalysis Normal( 48public static UserDefinedConversionAnalysis Lifted(
Binder\Semantics\Conversions\UserDefinedConversionResult.cs (7)
25public readonly ImmutableArray<UserDefinedConversionAnalysis> Results; 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) 71ImmutableArray<UserDefinedConversionAnalysis> results,
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (11)
40var ubuild = ArrayBuilder<UserDefinedConversionAnalysis>.GetInstance(); 43ImmutableArray<UserDefinedConversionAnalysis> u = ubuild.ToImmutableAndFree(); 91ArrayBuilder<UserDefinedConversionAnalysis> u, 133ArrayBuilder<UserDefinedConversionAnalysis> u, 145ArrayBuilder<UserDefinedConversionAnalysis> u, 330u.Add(UserDefinedConversionAnalysis.Lifted(constrainedToTypeOpt, op, liftedFromConversion, liftedToConversion, nullableFrom, nullableTo)); 362u.Add(UserDefinedConversionAnalysis.Normal(constrainedToTypeOpt, op, fromConversion, toConversion, convertsFrom, convertsTo)); 372ImmutableArray<UserDefinedConversionAnalysis> u, 415System.Func<UserDefinedConversionAnalysis, bool> isValid = conv => IsEncompassedBy(sourceExpression, source, conv.FromType, ref inLambdaUseSiteInfo); 430ImmutableArray<UserDefinedConversionAnalysis> u, 469System.Func<UserDefinedConversionAnalysis, bool> isValid = conv => IsEncompassedBy(conv.ToType, target, ref inLambdaUseSiteInfo);
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (14)
84var ubuild = ArrayBuilder<UserDefinedConversionAnalysis>.GetInstance(); 87ImmutableArray<UserDefinedConversionAnalysis> u = ubuild.ToImmutableAndFree(); 147ArrayBuilder<UserDefinedConversionAnalysis> u, 285ArrayBuilder<UserDefinedConversionAnalysis> u, 328u.Add(UserDefinedConversionAnalysis.Normal(constrainedToTypeOpt, op, fromConversion, toConversion, convertsFrom, convertsTo)); 356u.Add(UserDefinedConversionAnalysis.Lifted(constrainedToTypeOpt, op, liftedFromConversion, liftedToConversion, nullableFrom, nullableTo)); 365private TypeSymbol MostSpecificSourceTypeForImplicitUserDefinedConversion(ImmutableArray<UserDefinedConversionAnalysis> u, TypeSymbol source, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 381private TypeSymbol MostSpecificTargetTypeForImplicitUserDefinedConversion(ImmutableArray<UserDefinedConversionAnalysis> u, TypeSymbol target, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo) 412private static int LiftingCount(UserDefinedConversionAnalysis conv) 428private static int? MostSpecificConversionOperator(TypeSymbol sx, TypeSymbol tx, ImmutableArray<UserDefinedConversionAnalysis> u) 436private static int? MostSpecificConversionOperator(Func<UserDefinedConversionAnalysis, bool> constraint, ImmutableArray<UserDefinedConversionAnalysis> u) 967var ubuild = ArrayBuilder<UserDefinedConversionAnalysis>.GetInstance(); 970ImmutableArray<UserDefinedConversionAnalysis> u = ubuild.ToImmutableAndFree();
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (6)
1781var analysis = UserDefinedConversionAnalysis.Normal(conversion.ConstrainedToTypeOpt, meth, fromConversion, toConversion, fromType, toType); 1782var result = UserDefinedConversionResult.Valid(ImmutableArray.Create<UserDefinedConversionAnalysis>(analysis), 0); 1881var analysis = UserDefinedConversionAnalysis.Normal(constrainedToTypeOpt: null, meth, fromConversion, toConversion, fromType, toType); 1882var result = UserDefinedConversionResult.Valid(ImmutableArray.Create<UserDefinedConversionAnalysis>(analysis), 0);