28 references to OperatorAnalysisResultKind
Microsoft.CodeAnalysis.CSharp (28)
Binder\Semantics\Operators\BinaryOperatorAnalysisResult.cs (7)
19public readonly OperatorAnalysisResultKind Kind; 21private BinaryOperatorAnalysisResult(OperatorAnalysisResultKind kind, BinaryOperatorSignature signature, Conversion leftConversion, Conversion rightConversion) 31get { return this.Kind == OperatorAnalysisResultKind.Applicable; } 36get { return this.Kind != OperatorAnalysisResultKind.Undefined; } 55return new BinaryOperatorAnalysisResult(OperatorAnalysisResultKind.Applicable, signature, leftConversion, rightConversion); 60return new BinaryOperatorAnalysisResult(OperatorAnalysisResultKind.Inapplicable, signature, leftConversion, rightConversion); 65return new BinaryOperatorAnalysisResult(OperatorAnalysisResultKind.Worse, this.Signature, this.LeftConversion, this.RightConversion);
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (5)
1088if (candidates[index].Kind != OperatorAnalysisResultKind.Inapplicable && index != bestIndex) 1099if (candidates[i].Kind != OperatorAnalysisResultKind.Applicable) 1107if (candidates[j].Kind == OperatorAnalysisResultKind.Inapplicable) 1134if (candidates[index].Kind != OperatorAnalysisResultKind.Applicable) 1163if (candidates[index].Kind == OperatorAnalysisResultKind.Inapplicable)
Binder\Semantics\Operators\BinaryOperatorOverloadResolutionResult.cs (2)
89else if (CountKind(OperatorAnalysisResultKind.Applicable) > 1) 107private int CountKind(OperatorAnalysisResultKind kind)
Binder\Semantics\Operators\UnaryOperatorAnalysisResult.cs (7)
15public readonly OperatorAnalysisResultKind Kind; 17private UnaryOperatorAnalysisResult(OperatorAnalysisResultKind kind, UnaryOperatorSignature signature, Conversion conversion) 26get { return this.Kind == OperatorAnalysisResultKind.Applicable; } 31get { return this.Kind != OperatorAnalysisResultKind.Undefined; } 38return new UnaryOperatorAnalysisResult(OperatorAnalysisResultKind.Applicable, signature, conversion); 43return new UnaryOperatorAnalysisResult(OperatorAnalysisResultKind.Inapplicable, signature, conversion); 48return new UnaryOperatorAnalysisResult(OperatorAnalysisResultKind.Worse, this.Signature, this.Conversion);
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (5)
93if (candidates[index].Kind != OperatorAnalysisResultKind.Inapplicable && index != bestIndex) 104if (candidates[i].Kind != OperatorAnalysisResultKind.Applicable) 112if (candidates[j].Kind == OperatorAnalysisResultKind.Inapplicable) 138if (candidates[index].Kind != OperatorAnalysisResultKind.Applicable) 167if (candidates[index].Kind == OperatorAnalysisResultKind.Inapplicable)
Binder\Semantics\Operators\UnaryOperatorOverloadResolutionResult.cs (2)
89else if (CountKind(OperatorAnalysisResultKind.Applicable) > 1) 107private int CountKind(OperatorAnalysisResultKind kind)