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