3 instantiations of BinaryOperatorAnalysisResult
Microsoft.CodeAnalysis.CSharp (3)
Binder\Semantics\Operators\BinaryOperatorAnalysisResult.cs (3)
55
return new
BinaryOperatorAnalysisResult
(OperatorAnalysisResultKind.Applicable, signature, leftConversion, rightConversion);
60
return new
BinaryOperatorAnalysisResult
(OperatorAnalysisResultKind.Inapplicable, signature, leftConversion, rightConversion);
65
return new
BinaryOperatorAnalysisResult
(OperatorAnalysisResultKind.Worse, this.Signature, this.LeftConversion, this.RightConversion);
31 references to BinaryOperatorAnalysisResult
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder_Operators.cs (7)
123
BinaryOperatorAnalysisResult
best = this.BinaryOperatorOverloadResolution(kind, isChecked: CheckOverflowAtRuntime, left, right, node, diagnostics, out resultKind, out originalUserDefinedOperators);
580
BinaryOperatorAnalysisResult
best;
700
out BinaryOperatorSignature resultSignature, out
BinaryOperatorAnalysisResult
best)
965
var
best = this.BinaryOperatorOverloadResolution(kind, isChecked: CheckOverflowAtRuntime, left, right, node, diagnostics, out lookupResult, out originalUserDefinedOperators);
1306
private
BinaryOperatorAnalysisResult
BinaryOperatorOverloadResolution(
1320
return default(
BinaryOperatorAnalysisResult
);
1328
var
possiblyBest = result.Best;
Binder\Semantics\Operators\BinaryOperatorAnalysisResult.cs (3)
53
public static
BinaryOperatorAnalysisResult
Applicable(BinaryOperatorSignature signature, Conversion leftConversion, Conversion rightConversion)
58
public static
BinaryOperatorAnalysisResult
Inapplicable(BinaryOperatorSignature signature, Conversion leftConversion, Conversion rightConversion)
63
public
BinaryOperatorAnalysisResult
Worse()
Binder\Semantics\Operators\BinaryOperatorEasyOut.cs (1)
320
result.Results.Add(
BinaryOperatorAnalysisResult
.Applicable(signature, leftConversion, rightConversion));
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (14)
110
var rightOperators = ArrayBuilder<
BinaryOperatorAnalysisResult
>.GetInstance();
160
var rightOperators = ArrayBuilder<
BinaryOperatorAnalysisResult
>.GetInstance();
212
Dictionary<TypeSymbol, bool> lookedInInterfaces, ArrayBuilder<
BinaryOperatorAnalysisResult
> candidates)
253
var results = ArrayBuilder<
BinaryOperatorAnalysisResult
>.GetInstance();
706
private void GetAllBuiltInOperators(BinaryOperatorKind kind, bool isChecked, BoundExpression left, BoundExpression right, ArrayBuilder<
BinaryOperatorAnalysisResult
> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
734
results.Add(
BinaryOperatorAnalysisResult
.Applicable(op, convLeft, convRight));
794
ArrayBuilder<
BinaryOperatorAnalysisResult
> results,
804
results.Add(
BinaryOperatorAnalysisResult
.Applicable(op, convLeft, convRight));
809
results.Add(
BinaryOperatorAnalysisResult
.Inapplicable(op, convLeft, convRight));
815
private static void AddDistinctOperators(ArrayBuilder<
BinaryOperatorAnalysisResult
> result, ArrayBuilder<
BinaryOperatorAnalysisResult
> additionalOperators)
857
ArrayBuilder<
BinaryOperatorAnalysisResult
> results,
1073
RemoveLowerPriorityMembers<
BinaryOperatorAnalysisResult
, MethodSymbol>(candidates);
1128
ArrayBuilder<
BinaryOperatorAnalysisResult
> candidates,
Binder\Semantics\Operators\BinaryOperatorOverloadResolutionResult.cs (6)
15
public readonly ArrayBuilder<
BinaryOperatorAnalysisResult
> Results;
19
this.Results = new ArrayBuilder<
BinaryOperatorAnalysisResult
>(10);
54
public
BinaryOperatorAnalysisResult
Best
58
BinaryOperatorAnalysisResult
best = default(
BinaryOperatorAnalysisResult
);
66
return default(
BinaryOperatorAnalysisResult
);