1 override of OperatorDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
267public override SyntaxNode OperatorDeclaration(OperatorKind kind, IEnumerable<SyntaxNode>? parameters = null, SyntaxNode? returnType = null, Accessibility accessibility = Accessibility.NotApplicable, DeclarationModifiers modifiers = default, IEnumerable<SyntaxNode>? statements = null)
31 references to OperatorDeclaration
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)]),