27 references to OperatorFacts
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Crefs.cs (2)
234
:
OperatorFacts
.BinaryOperatorNameFromSyntaxKindIfAny(operatorTokenKind, isChecked);
236
memberName = memberName ??
OperatorFacts
.UnaryOperatorNameFromSyntaxKindIfAny(operatorTokenKind, isChecked: isChecked);
Binder\BinderFactory.BinderFactoryVisitor.cs (2)
469
return ExplicitInterfaceHelpers.GetMemberName(outerBinder, operatorDeclaration.ExplicitInterfaceSpecifier,
OperatorFacts
.OperatorNameFromDeclaration(operatorDeclaration));
472
return ExplicitInterfaceHelpers.GetMemberName(outerBinder, conversionDeclaration.ExplicitInterfaceSpecifier,
OperatorFacts
.OperatorNameFromDeclaration(conversionDeclaration));
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (3)
861
if ((object)type0 == null ||
OperatorFacts
.DefinitelyHasNoUserDefinedOperators(type0))
925
string name1 =
OperatorFacts
.BinaryOperatorNameFromOperatorKind(kind, isChecked);
931
string name2 =
OperatorFacts
.BinaryOperatorNameFromOperatorKind(kind, isChecked: false);
Binder\Semantics\Operators\OperatorFacts.cs (3)
135
return
OperatorFacts
.UnaryOperatorNameFromSyntaxKind(opTokenKind, isChecked);
138
return
OperatorFacts
.BinaryOperatorNameFromSyntaxKind(opTokenKind, isChecked);
142
return
OperatorFacts
.UnaryOperatorNameFromSyntaxKind(opTokenKind, isChecked);
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (3)
383
if (
OperatorFacts
.DefinitelyHasNoUserDefinedOperators(type0))
481
string name1 =
OperatorFacts
.UnaryOperatorNameFromOperatorKind(kind, isChecked);
487
string name2 =
OperatorFacts
.UnaryOperatorNameFromOperatorKind(kind, isChecked: false);
Compilation\CSharpCompilation.cs (2)
4243
var binaryOperatorName =
OperatorFacts
.BinaryOperatorNameFromSyntaxKindIfAny(syntaxKind, SyntaxFacts.IsCheckedOperator(name));
4469
var unaryOperatorName =
OperatorFacts
.UnaryOperatorNameFromSyntaxKindIfAny(syntaxKind, SyntaxFacts.IsCheckedOperator(name));
Compilation\CSharpSemanticModel.cs (4)
3810
OperatorFacts
.UnaryOperatorNameFromOperatorKind(op, isChecked: unaryOperator.OperatorKind.IsChecked()),
3834
OperatorFacts
.UnaryOperatorNameFromOperatorKind(op, isChecked: increment.OperatorKind.IsChecked()),
3867
OperatorFacts
.BinaryOperatorNameFromOperatorKind(op, isChecked: binaryOperator.OperatorKind.IsChecked()),
3908
OperatorFacts
.BinaryOperatorNameFromOperatorKind(op, isChecked),
Compilation\SyntaxTreeSemanticModel.cs (2)
1683
return GetDeclarationName(declaration, operatorDecl.ExplicitInterfaceSpecifier,
OperatorFacts
.OperatorNameFromDeclaration(operatorDecl));
1689
return GetDeclarationName(declaration, operatorDecl.ExplicitInterfaceSpecifier,
OperatorFacts
.OperatorNameFromDeclaration(operatorDecl));
Declarations\DeclarationTreeBuilder.cs (2)
1205
var name =
OperatorFacts
.OperatorNameFromDeclaration(opDecl);
1218
var name =
OperatorFacts
.OperatorNameFromDeclaration(opDecl);
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
26
string name =
OperatorFacts
.OperatorNameFromDeclaration(syntax);
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
26
string name =
OperatorFacts
.OperatorNameFromDeclaration(syntax);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
306
interfaceMethodName =
OperatorFacts
.OperatorNameFromDeclaration(operatorDeclaration);
311
interfaceMethodName =
OperatorFacts
.OperatorNameFromDeclaration(conversionDeclaration);