111 references to OperatorKind
Microsoft.CodeAnalysis.CSharp.Workspaces (30)
CodeGeneration\CSharpSyntaxGenerator.cs (30)
264public override SyntaxNode OperatorDeclaration(OperatorKind kind, IEnumerable<SyntaxNode>? parameters = null, SyntaxNode? returnType = null, Accessibility accessibility = Accessibility.NotApplicable, DeclarationModifiers modifiers = default, IEnumerable<SyntaxNode>? statements = null) 266return OperatorDeclaration(GetOperatorName(kind), isImplicitConversion: kind == OperatorKind.ImplicitConversion, parameters, returnType, accessibility, modifiers, statements); 314private static string GetOperatorName(OperatorKind kind) 317OperatorKind.ImplicitConversion => WellKnownMemberNames.ImplicitConversionName, 318OperatorKind.ExplicitConversion => WellKnownMemberNames.ExplicitConversionName, 319OperatorKind.Addition => WellKnownMemberNames.AdditionOperatorName, 320OperatorKind.BitwiseAnd => WellKnownMemberNames.BitwiseAndOperatorName, 321OperatorKind.BitwiseOr => WellKnownMemberNames.BitwiseOrOperatorName, 322OperatorKind.Decrement => WellKnownMemberNames.DecrementOperatorName, 323OperatorKind.Division => WellKnownMemberNames.DivisionOperatorName, 324OperatorKind.Equality => WellKnownMemberNames.EqualityOperatorName, 325OperatorKind.ExclusiveOr => WellKnownMemberNames.ExclusiveOrOperatorName, 326OperatorKind.False => WellKnownMemberNames.FalseOperatorName, 327OperatorKind.GreaterThan => WellKnownMemberNames.GreaterThanOperatorName, 328OperatorKind.GreaterThanOrEqual => WellKnownMemberNames.GreaterThanOrEqualOperatorName, 329OperatorKind.Increment => WellKnownMemberNames.IncrementOperatorName, 330OperatorKind.Inequality => WellKnownMemberNames.InequalityOperatorName, 331OperatorKind.LeftShift => WellKnownMemberNames.LeftShiftOperatorName, 332OperatorKind.LessThan => WellKnownMemberNames.LessThanOperatorName, 333OperatorKind.LessThanOrEqual => WellKnownMemberNames.LessThanOrEqualOperatorName, 334OperatorKind.LogicalNot => WellKnownMemberNames.LogicalNotOperatorName, 335OperatorKind.Modulus => WellKnownMemberNames.ModulusOperatorName, 336OperatorKind.Multiply => WellKnownMemberNames.MultiplyOperatorName, 337OperatorKind.OnesComplement => WellKnownMemberNames.OnesComplementOperatorName, 338OperatorKind.RightShift => WellKnownMemberNames.RightShiftOperatorName, 339OperatorKind.UnsignedRightShift => WellKnownMemberNames.UnsignedRightShiftOperatorName, 340OperatorKind.Subtraction => WellKnownMemberNames.SubtractionOperatorName, 341OperatorKind.True => WellKnownMemberNames.TrueOperatorName, 342OperatorKind.UnaryNegation => WellKnownMemberNames.UnaryNegationOperatorName, 343OperatorKind.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)
667Public Overrides Function OperatorDeclaration(kind As OperatorKind, 674Return OperatorDeclaration(GetOperatorName(kind), isImplicitConversion:=kind = OperatorKind.ImplicitConversion, parameters, returnType, accessibility, modifiers, statements) 708Private Shared Function GetOperatorName(kind As OperatorKind) As String 710Case OperatorKind.ImplicitConversion 712Case OperatorKind.ExplicitConversion 714Case OperatorKind.Addition 716Case OperatorKind.BitwiseAnd 718Case OperatorKind.BitwiseOr 720Case OperatorKind.Division 722Case OperatorKind.Equality 724Case OperatorKind.ExclusiveOr 726Case OperatorKind.False 728Case OperatorKind.GreaterThan 730Case OperatorKind.GreaterThanOrEqual 732Case OperatorKind.Inequality 734Case OperatorKind.LeftShift 736Case OperatorKind.LessThan 738Case OperatorKind.LessThanOrEqual 740Case OperatorKind.LogicalNot 742Case OperatorKind.Modulus 744Case OperatorKind.Multiply 746Case OperatorKind.RightShift 748Case OperatorKind.Subtraction 750Case OperatorKind.True 752Case OperatorKind.UnaryNegation 754Case 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,