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