Table of Contents

Class ClassDefinitionNode

Namespace
EzrSquared.Runtime.Nodes
Assembly
ezrSquared-lib.dll

The Node structure for a class definition.

public record ClassDefinitionNode : Node
Inheritance
object
ClassDefinitionNode
Inherited Members

Constructors

ClassDefinitionNode(Node?, AccessMod, bool, IReadOnlyCollection<Node>, Node, Position, Position)

The Node structure for a class definition.

public ClassDefinitionNode(Node? Name, AccessMod AccessibilityModifiers, bool Readonly, IReadOnlyCollection<Node> Parents, Node Body, Position StartPosition, Position EndPosition)

Parameters

Name Node

The (optional) name of the class.

AccessibilityModifiers AccessMod

The accessibility modifiers for the class definition.

Readonly bool

The check for if the class should be declared read-only.

Parents IReadOnlyCollection<Node>

The parents of the class.

Body Node

The body of the class.

StartPosition Position

The starting Position of the ClassDefinitionNode.

EndPosition Position

The ending Position of the ClassDefinitionNode.

Properties

AccessibilityModifiers

The accessibility modifiers for the class definition.

public AccessMod AccessibilityModifiers { get; init; }

Property Value

AccessMod

Body

The body of the class.

public Node Body { get; init; }

Property Value

Node

Name

The (optional) name of the class.

public Node? Name { get; init; }

Property Value

Node

Parents

The parents of the class.

public IReadOnlyCollection<Node> Parents { get; init; }

Property Value

IReadOnlyCollection<Node>

Readonly

The check for if the class should be declared read-only.

public bool Readonly { get; init; }

Property Value

bool