Class ClassDefinitionNode
- Namespace
- EzrSquared.Runtime.Nodes
- Assembly
- ezrSquared-lib.dll
The Node structure for a class definition.
public record ClassDefinitionNode : Node
- Inheritance
-
objectClassDefinitionNode
- 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
NameNodeThe (optional) name of the class.
AccessibilityModifiersAccessModThe accessibility modifiers for the class definition.
ReadonlyboolThe check for if the class should be declared read-only.
ParentsIReadOnlyCollection<Node>The parents of the class.
BodyNodeThe body of the class.
StartPositionPositionThe starting Position of the ClassDefinitionNode.
EndPositionPositionThe ending Position of the ClassDefinitionNode.
Properties
AccessibilityModifiers
The accessibility modifiers for the class definition.
public AccessMod AccessibilityModifiers { get; init; }
Property Value
Body
The body of the class.
public Node Body { get; init; }
Property Value
Name
The (optional) name of the class.
public Node? Name { get; init; }
Property Value
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