1 override of CustomEventDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
546
public override SyntaxNode
CustomEventDeclaration
(
29 references to CustomEventDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (17)
CodeGeneration\SyntaxGeneratorTests.cs (17)
1150
Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.Abstract),
1154
Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Abstract),
1158
Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t")),
1492
Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.Abstract),
1650
Generator.InterfaceDeclaration("i", members: [Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Static)]),
1882
Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.Abstract),
1959
var evnt = Generator.
CustomEventDeclaration
("E", Generator.IdentifierName("T"));
2887
Assert.Equal(DeclarationKind.CustomEvent, Generator.GetDeclarationKind(Generator.
CustomEventDeclaration
("e", Generator.IdentifierName("t"))));
2910
Assert.Equal("ep", Generator.GetName(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"))));
2933
Assert.Equal("ep", Generator.GetName(Generator.WithName(Generator.
CustomEventDeclaration
("x", Generator.IdentifierName("t")), "ep")));
2956
Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), accessibility: Accessibility.Internal)));
2980
Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), accessibility: Accessibility.Internal), Accessibility.Private)));
3003
Assert.Equal(DeclarationModifiers.Static, Generator.GetModifiers(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.Static)));
3026
Assert.Equal(DeclarationModifiers.Static, Generator.GetModifiers(Generator.WithModifiers(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t")), DeclarationModifiers.Static)));
3090
Generator.GetModifiers(Generator.WithModifiers(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t")), allModifiers)));
3203
Assert.Equal("t", Generator.GetType(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"))).ToString());
3226
Assert.Equal("t", Generator.GetType(Generator.WithType(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("x")), Generator.IdentifierName("t"))).ToString());
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (11)
CodeGeneration\SyntaxGeneratorTests.vb (11)
1341
Generator.
CustomEventDeclaration
("ev", Generator.IdentifierName("t")),
1355
Generator.
CustomEventDeclaration
("ev", Generator.IdentifierName("t"), parameters:=params),
2582
Assert.Equal(DeclarationKind.CustomEvent, Generator.GetDeclarationKind(Generator.
CustomEventDeclaration
("ce", Generator.IdentifierName("t"))))
2607
Assert.Equal("ep", Generator.GetName(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"))))
2632
Assert.Equal("ep", Generator.GetName(Generator.WithName(Generator.
CustomEventDeclaration
("x", Generator.IdentifierName("t")), "ep")))
2654
Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal)))
2682
Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal), Accessibility.Private)))
2708
Assert.Equal(DeclarationModifiers.Static, Generator.GetModifiers(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.Static)))
2730
Assert.Equal(DeclarationModifiers.Static, Generator.GetModifiers(Generator.WithModifiers(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t")), DeclarationModifiers.Static)))
2773
Assert.Equal("t", Generator.GetType(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("t"))).ToString())
2797
Assert.Equal("t", Generator.GetType(Generator.WithType(Generator.
CustomEventDeclaration
("ep", Generator.IdentifierName("x")), Generator.IdentifierName("t"))).ToString())
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
531
return
CustomEventDeclaration
(