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
Name
NodeThe (optional) name of the class.
AccessibilityModifiers
AccessModThe accessibility modifiers for the class definition.
Readonly
boolThe check for if the class should be declared read-only.
Parents
IReadOnlyCollection<Node>The parents of the class.
Body
NodeThe body of the class.
StartPosition
PositionThe starting Position of the ClassDefinitionNode.
EndPosition
PositionThe 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