3 instantiations of UnaryOperatorAnalysisResult
Microsoft.CodeAnalysis.CSharp (3)
Binder\Semantics\Operators\UnaryOperatorAnalysisResult.cs (3)
38
return new
UnaryOperatorAnalysisResult
(OperatorAnalysisResultKind.Applicable, signature, conversion);
43
return new
UnaryOperatorAnalysisResult
(OperatorAnalysisResultKind.Inapplicable, signature, conversion);
48
return new
UnaryOperatorAnalysisResult
(OperatorAnalysisResultKind.Worse, this.Signature, this.Conversion);
24 references to UnaryOperatorAnalysisResult
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Operators.cs (4)
1408
private
UnaryOperatorAnalysisResult
UnaryOperatorOverloadResolution(
1421
var
possiblyBest = result.Best;
2310
var
best = this.UnaryOperatorOverloadResolution(kind, operand, node, diagnostics, out resultKind, out originalUserDefinedOperators);
2769
var
best = this.UnaryOperatorOverloadResolution(kind, operand, node, diagnostics, out resultKind, out originalUserDefinedOperators);
Binder\Binder_Statements.cs (1)
2703
var
best = this.UnaryOperatorOverloadResolution(UnaryOperatorKind.True, expr, node, diagnostics, out LookupResultKind resultKind, out ImmutableArray<MethodSymbol> originalUserDefinedOperators);
Binder\Binder_TupleOperators.cs (1)
161
UnaryOperatorAnalysisResult
best = this.UnaryOperatorOverloadResolution(boolOpKind, comparisonResult, node, diagnostics, out resultKind, out originalUserDefinedOperators);
Binder\Semantics\Operators\UnaryOperatorAnalysisResult.cs (3)
36
public static
UnaryOperatorAnalysisResult
Applicable(UnaryOperatorSignature signature, Conversion conversion)
41
public static
UnaryOperatorAnalysisResult
Inapplicable(UnaryOperatorSignature signature, Conversion conversion)
46
public
UnaryOperatorAnalysisResult
Worse()
Binder\Semantics\Operators\UnaryOperatorEasyOut.cs (1)
118
result.Results.Add(
UnaryOperatorAnalysisResult
.Applicable(signature, conversion.Value));
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (8)
78
RemoveLowerPriorityMembers<
UnaryOperatorAnalysisResult
, MethodSymbol>(candidates);
132
ArrayBuilder<
UnaryOperatorAnalysisResult
> candidates,
241
private void GetAllBuiltInOperators(UnaryOperatorKind kind, bool isChecked, BoundExpression operand, ArrayBuilder<
UnaryOperatorAnalysisResult
> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
272
private bool CandidateOperators(bool isChecked, ArrayBuilder<UnaryOperatorSignature> operators, BoundExpression operand, ArrayBuilder<
UnaryOperatorAnalysisResult
> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
281
results.Add(
UnaryOperatorAnalysisResult
.Applicable(op, conversion));
285
results.Add(
UnaryOperatorAnalysisResult
.Inapplicable(op, conversion));
347
private bool GetUserDefinedOperators(UnaryOperatorKind kind, bool isChecked, BoundExpression operand, ArrayBuilder<
UnaryOperatorAnalysisResult
> results, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
432
var resultsFromInterface = ArrayBuilder<
UnaryOperatorAnalysisResult
>.GetInstance();
Binder\Semantics\Operators\UnaryOperatorOverloadResolutionResult.cs (6)
15
public readonly ArrayBuilder<
UnaryOperatorAnalysisResult
> Results;
19
this.Results = new ArrayBuilder<
UnaryOperatorAnalysisResult
>(10);
54
public
UnaryOperatorAnalysisResult
Best
58
UnaryOperatorAnalysisResult
best = default(
UnaryOperatorAnalysisResult
);
66
return default(
UnaryOperatorAnalysisResult
);