1 override of OperatorDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
267
public 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)
861
Generator.
OperatorDeclaration
(OperatorKind.Addition, parameters, returnType),
865
Generator.
OperatorDeclaration
(OperatorKind.BitwiseAnd, parameters, returnType),
869
Generator.
OperatorDeclaration
(OperatorKind.BitwiseOr, parameters, returnType),
873
Generator.
OperatorDeclaration
(OperatorKind.Decrement, parameters, returnType),
877
Generator.
OperatorDeclaration
(OperatorKind.Division, parameters, returnType),
881
Generator.
OperatorDeclaration
(OperatorKind.Equality, parameters, returnType),
885
Generator.
OperatorDeclaration
(OperatorKind.ExclusiveOr, parameters, returnType),
889
Generator.
OperatorDeclaration
(OperatorKind.False, parameters, returnType),
893
Generator.
OperatorDeclaration
(OperatorKind.GreaterThan, parameters, returnType),
897
Generator.
OperatorDeclaration
(OperatorKind.GreaterThanOrEqual, parameters, returnType),
901
Generator.
OperatorDeclaration
(OperatorKind.Increment, parameters, returnType),
905
Generator.
OperatorDeclaration
(OperatorKind.Inequality, parameters, returnType),
909
Generator.
OperatorDeclaration
(OperatorKind.LeftShift, parameters, returnType),
913
Generator.
OperatorDeclaration
(OperatorKind.LessThan, parameters, returnType),
917
Generator.
OperatorDeclaration
(OperatorKind.LessThanOrEqual, parameters, returnType),
921
Generator.
OperatorDeclaration
(OperatorKind.LogicalNot, parameters, returnType),
925
Generator.
OperatorDeclaration
(OperatorKind.Modulus, parameters, returnType),
929
Generator.
OperatorDeclaration
(OperatorKind.Multiply, parameters, returnType),
933
Generator.
OperatorDeclaration
(OperatorKind.OnesComplement, parameters, returnType),
937
Generator.
OperatorDeclaration
(OperatorKind.RightShift, parameters, returnType),
941
Generator.
OperatorDeclaration
(OperatorKind.UnsignedRightShift, parameters, returnType),
945
Generator.
OperatorDeclaration
(OperatorKind.Subtraction, parameters, returnType),
949
Generator.
OperatorDeclaration
(OperatorKind.True, parameters, returnType),
953
Generator.
OperatorDeclaration
(OperatorKind.UnaryNegation, parameters, returnType),
957
Generator.
OperatorDeclaration
(OperatorKind.UnaryPlus, parameters, returnType),
963
Generator.
OperatorDeclaration
(OperatorKind.ImplicitConversion, parameters, returnType),
967
Generator.
OperatorDeclaration
(OperatorKind.ExplicitConversion, parameters, returnType),
2752
AssertMemberNamesEqual("", 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)]),