38 public override bool Equals(
object obj)
58 return this.node.
SubExpression.CompareTo(Typed.node.SubExpression);
74 if (!(this.node is
null))
76 b = !Callback(this.node, out
ScriptNode NewNode, State);
77 if (!(NewNode is
null))
85 if (b || (Order ==
SearchMethod.TreeOrder && !
this.node.ForAllChildNodes(Callback, State, Order)))
Abstract base class for semantic elements.
Base class for all nodes in a parsed script tree.
string SubExpression
Sub-expression defining the node.
ScriptNode Parent
Parent node.
void SetParent(ScriptNode Parent)
Sets the parent node. Can only be used when expression is being parsed.
Semantic element based on script.
SemanticScriptElement(ScriptNode Node)
Semantic element based on script.
ScriptNode Node
Script definition.
override object AssociatedObjectValue
Associated object value.
override int GetHashCode()
bool ForAll(ScriptNodeEventHandler Callback, object State, SearchMethod Order)
Calls the callback method for all child nodes.
override bool Equals(object obj)
override int CompareTo(object obj)
Compares element to another.
override bool IsLiteral
If element is a literal.
delegate bool ScriptNodeEventHandler(ScriptNode Node, out ScriptNode NewNode, object State)
Delegate for ScriptNode callback methods.
SearchMethod
Method to traverse the expression structure