In This Article

EventDeclaration Class

An AST node for an event declaration.

public class EventDeclaration : TypeMemberDeclaration, IDecoratedMember, IAstNode
Inheritance:
object AstNodeBase TypeMemberDeclaration object
Implements:
IDecoratedMember IAstNode

Remarks

This type was generated by the Actipro Language Designer tool v26.1.0 (http://www.actiprosoftware.com).

Constructors

EventDeclaration()

Initializes an instance of the class.

public EventDeclaration()

Properties

Body

The body.

public EventBody? Body { get; set; }

Property Value

EventBody

Declarators

The collection of declarators.

public IList<VariableDeclarator> Declarators { get; }

Property Value

IList<VariableDeclarator>

DelegateDeclaration

The delegate declaration.

public DelegateDeclaration? DelegateDeclaration { get; set; }

Property Value

DelegateDeclaration

DelegateType

The delegate type.

public QualifiedName? DelegateType { get; set; }

Property Value

QualifiedName

HasDeclarators

Indicates whether the Declarators collection property contains at least one item.

public bool HasDeclarators { get; }

Property Value

bool:

true if there is at least one item in the collection; otherwise, false.

HasImplements

Indicates whether the Implements collection property contains at least one item.

public bool HasImplements { get; }

Property Value

bool:

true if there is at least one item in the collection; otherwise, false.

Id

An integer value that identifies the type of AST node, if known.

public override int Id { get; }

Property Value

int

Remarks

This class' default implementation always returns 0.

Implements

The collection of implements.

public IList<QualifiedName> Implements { get; }

Property Value

IList<QualifiedName>

Kind

A TypeMemberDeclarationKind indicating the kind of type member.

public override sealed TypeMemberDeclarationKind Kind { get; }

Property Value

TypeMemberDeclarationKind

Methods

GetChildrenEnumerator()

Retrieves an IEnumerator object that can iterate the child IAstNode objects in this node.

protected override IEnumerator<IAstNode>? GetChildrenEnumerator()

Returns

IEnumerator<IAstNode>

Inherited Members

Extension Methods