The possible semantic states of a Node.
Returns a reference to Class if this node can be cast to it.
Adds a child node.
Adds a list of child nodes.
Adss a child node if not null.
Adds a list of child nodes if not null.
Returns a deep copy of this node.
Returns a shallow copy of this object.
Returns true if Declaration.
Returns true if Expression.
Returns true if Parameter.
Returns true if Statement.
Returns true if Type.
Sets the location tokens (begin and end) using another node.
Sets the begin and end tokens.
Casts this node to Class.
Returns the text spanned by the begin and end tokens. Warning: The Tokens must refer to the same piece of text.
This string is mixed into the constructor of a class that inherits from Node. It sets the member kind. E.g.: this.kind = NodeKind.IfStmt;
The root class of all D syntax tree elements.