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