111 references to OperatorKind
Microsoft.CodeAnalysis.CSharp.Workspaces (30)
CodeGeneration\CSharpSyntaxGenerator.cs (30)
267public override SyntaxNode OperatorDeclaration(OperatorKind kind, IEnumerable<SyntaxNode>? parameters = null, SyntaxNode? returnType = null, Accessibility accessibility = Accessibility.NotApplicable, DeclarationModifiers modifiers = default, IEnumerable<SyntaxNode>? statements = null) 269return OperatorDeclaration(GetOperatorName(kind), isImplicitConversion: kind == OperatorKind.ImplicitConversion, parameters, returnType, accessibility, modifiers, statements); 317private static string GetOperatorName(OperatorKind kind) 320OperatorKind.ImplicitConversion => WellKnownMemberNames.ImplicitConversionName, 321OperatorKind.ExplicitConversion => WellKnownMemberNames.ExplicitConversionName, 322OperatorKind.Addition => WellKnownMemberNames.AdditionOperatorName, 323OperatorKind.BitwiseAnd => WellKnownMemberNames.BitwiseAndOperatorName, 324OperatorKind.BitwiseOr => WellKnownMemberNames.BitwiseOrOperatorName, 325OperatorKind.Decrement => WellKnownMemberNames.DecrementOperatorName, 326OperatorKind.Division => WellKnownMemberNames.DivisionOperatorName, 327OperatorKind.Equality => WellKnownMemberNames.EqualityOperatorName, 328OperatorKind.ExclusiveOr => WellKnownMemberNames.ExclusiveOrOperatorName, 329OperatorKind.False => WellKnownMemberNames.FalseOperatorName, 330OperatorKind.GreaterThan => WellKnownMemberNames.GreaterThanOperatorName, 331OperatorKind.GreaterThanOrEqual => WellKnownMemberNames.GreaterThanOrEqualOperatorName, 332OperatorKind.Increment => WellKnownMemberNames.IncrementOperatorName, 333OperatorKind.Inequality => WellKnownMemberNames.InequalityOperatorName, 334OperatorKind.LeftShift => WellKnownMemberNames.LeftShiftOperatorName, 335OperatorKind.LessThan => WellKnownMemberNames.LessThanOperatorName, 336OperatorKind.LessThanOrEqual => WellKnownMemberNames.LessThanOrEqualOperatorName, 337OperatorKind.LogicalNot => WellKnownMemberNames.LogicalNotOperatorName, 338OperatorKind.Modulus => WellKnownMemberNames.ModulusOperatorName, 339OperatorKind.Multiply => WellKnownMemberNames.MultiplyOperatorName, 340OperatorKind.OnesComplement => WellKnownMemberNames.OnesComplementOperatorName, 341OperatorKind.RightShift => WellKnownMemberNames.RightShiftOperatorName, 342OperatorKind.UnsignedRightShift => WellKnownMemberNames.UnsignedRightShiftOperatorName, 343OperatorKind.Subtraction => WellKnownMemberNames.SubtractionOperatorName, 344OperatorKind.True => WellKnownMemberNames.TrueOperatorName, 345OperatorKind.UnaryNegation => WellKnownMemberNames.UnaryNegationOperatorName, 346OperatorKind.UnaryPlus => WellKnownMemberNames.UnaryPlusOperatorName,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (31)
CodeGeneration\SyntaxGeneratorTests.cs (31)
861Generator.OperatorDeclaration(OperatorKind.Addition, parameters, returnType), 865Generator.OperatorDeclaration(OperatorKind.BitwiseAnd, parameters, returnType), 869Generator.OperatorDeclaration(OperatorKind.BitwiseOr, parameters, returnType), 873Generator.OperatorDeclaration(OperatorKind.Decrement, parameters, returnType), 877Generator.OperatorDeclaration(OperatorKind.Division, parameters, returnType), 881Generator.OperatorDeclaration(OperatorKind.Equality, parameters, returnType), 885Generator.OperatorDeclaration(OperatorKind.ExclusiveOr, parameters, returnType), 889Generator.OperatorDeclaration(OperatorKind.False, parameters, returnType), 893Generator.OperatorDeclaration(OperatorKind.GreaterThan, parameters, returnType), 897Generator.OperatorDeclaration(OperatorKind.GreaterThanOrEqual, parameters, returnType), 901Generator.OperatorDeclaration(OperatorKind.Increment, parameters, returnType), 905Generator.OperatorDeclaration(OperatorKind.Inequality, parameters, returnType), 909Generator.OperatorDeclaration(OperatorKind.LeftShift, parameters, returnType), 913Generator.OperatorDeclaration(OperatorKind.LessThan, parameters, returnType), 917Generator.OperatorDeclaration(OperatorKind.LessThanOrEqual, parameters, returnType), 921Generator.OperatorDeclaration(OperatorKind.LogicalNot, parameters, returnType), 925Generator.OperatorDeclaration(OperatorKind.Modulus, parameters, returnType), 929Generator.OperatorDeclaration(OperatorKind.Multiply, parameters, returnType), 933Generator.OperatorDeclaration(OperatorKind.OnesComplement, parameters, returnType), 937Generator.OperatorDeclaration(OperatorKind.RightShift, parameters, returnType), 941Generator.OperatorDeclaration(OperatorKind.UnsignedRightShift, parameters, returnType), 945Generator.OperatorDeclaration(OperatorKind.Subtraction, parameters, returnType), 949Generator.OperatorDeclaration(OperatorKind.True, parameters, returnType), 953Generator.OperatorDeclaration(OperatorKind.UnaryNegation, parameters, returnType), 957Generator.OperatorDeclaration(OperatorKind.UnaryPlus, parameters, returnType), 963Generator.OperatorDeclaration(OperatorKind.ImplicitConversion, parameters, returnType), 967Generator.OperatorDeclaration(OperatorKind.ExplicitConversion, parameters, returnType), 2752AssertMemberNamesEqual("", Generator.AddMembers(Generator.InterfaceDeclaration("i"), [Generator.OperatorDeclaration(OperatorKind.Addition)])); 2769[Generator.OperatorDeclaration(OperatorKind.Addition)]), 2778[Generator.OperatorDeclaration(OperatorKind.Addition, modifiers: DeclarationModifiers.Abstract)]), 2787[Generator.OperatorDeclaration(OperatorKind.Addition, modifiers: DeclarationModifiers.Virtual)]),
Microsoft.CodeAnalysis.VisualBasic.Workspaces (26)
CodeGeneration\VisualBasicSyntaxGenerator.vb (26)
717Public Overrides Function OperatorDeclaration(kind As OperatorKind, 724Return OperatorDeclaration(GetOperatorName(kind), isImplicitConversion:=kind = OperatorKind.ImplicitConversion, parameters, returnType, accessibility, modifiers, statements) 758Private Shared Function GetOperatorName(kind As OperatorKind) As String 760Case OperatorKind.ImplicitConversion 762Case OperatorKind.ExplicitConversion 764Case OperatorKind.Addition 766Case OperatorKind.BitwiseAnd 768Case OperatorKind.BitwiseOr 770Case OperatorKind.Division 772Case OperatorKind.Equality 774Case OperatorKind.ExclusiveOr 776Case OperatorKind.False 778Case OperatorKind.GreaterThan 780Case OperatorKind.GreaterThanOrEqual 782Case OperatorKind.Inequality 784Case OperatorKind.LeftShift 786Case OperatorKind.LessThan 788Case OperatorKind.LessThanOrEqual 790Case OperatorKind.LogicalNot 792Case OperatorKind.Modulus 794Case OperatorKind.Multiply 796Case OperatorKind.RightShift 798Case OperatorKind.Subtraction 800Case OperatorKind.True 802Case OperatorKind.UnaryNegation 804Case OperatorKind.UnaryPlus
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (23)
CodeGeneration\SyntaxGeneratorTests.vb (23)
946Generator.OperatorDeclaration(OperatorKind.Addition, parameters, returnType), 951Generator.OperatorDeclaration(OperatorKind.BitwiseAnd, parameters, returnType), 956Generator.OperatorDeclaration(OperatorKind.BitwiseOr, parameters, returnType), 961Generator.OperatorDeclaration(OperatorKind.Division, parameters, returnType), 966Generator.OperatorDeclaration(OperatorKind.Equality, parameters, returnType), 971Generator.OperatorDeclaration(OperatorKind.ExclusiveOr, parameters, returnType), 976Generator.OperatorDeclaration(OperatorKind.False, parameters, returnType), 981Generator.OperatorDeclaration(OperatorKind.GreaterThan, parameters, returnType), 986Generator.OperatorDeclaration(OperatorKind.GreaterThanOrEqual, parameters, returnType), 991Generator.OperatorDeclaration(OperatorKind.Inequality, parameters, returnType), 996Generator.OperatorDeclaration(OperatorKind.LeftShift, parameters, returnType), 1001Generator.OperatorDeclaration(OperatorKind.LessThan, parameters, returnType), 1006Generator.OperatorDeclaration(OperatorKind.LessThanOrEqual, parameters, returnType), 1011Generator.OperatorDeclaration(OperatorKind.LogicalNot, parameters, returnType), 1016Generator.OperatorDeclaration(OperatorKind.Modulus, parameters, returnType), 1021Generator.OperatorDeclaration(OperatorKind.Multiply, parameters, returnType), 1026Generator.OperatorDeclaration(OperatorKind.RightShift, parameters, returnType), 1031Generator.OperatorDeclaration(OperatorKind.Subtraction, parameters, returnType), 1036Generator.OperatorDeclaration(OperatorKind.True, parameters, returnType), 1041Generator.OperatorDeclaration(OperatorKind.UnaryNegation, parameters, returnType), 1046Generator.OperatorDeclaration(OperatorKind.UnaryPlus, parameters, returnType), 1053Generator.OperatorDeclaration(OperatorKind.ImplicitConversion, parameters, returnType), 1058Generator.OperatorDeclaration(OperatorKind.ExplicitConversion, parameters, returnType),
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
256OperatorKind kind,