2using System.Threading.Tasks;
76 if (!(this.source is
null))
78 b = !Callback(this.source, out
ScriptNode NewNode, State);
81 this.source = Source2;
85 if (b || (Order ==
SearchMethod.TreeOrder && !
this.source.ForAllChildNodes(Callback, State, Order)))
99 public override bool Equals(
object obj)
109 int Result = base.GetHashCode();
Class managing a script expression.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
static bool AreEqual(ScriptNode S1, ScriptNode S2)
Compares if two script nodes are equal.
int Start
Start position in script expression.
void SetParent(ScriptNode Parent)
Sets the parent node. Can only be used when expression is being parsed.
static readonly ObjectValue Null
Null value.
Executes an DROP INDEX ... ON ... statement against the object database.
override IElement Evaluate(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection.
override async Task< IElement > EvaluateAsync(Variables Variables)
Evaluates the node asynchronously, using the variables provided in the Variables collection.
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override int GetHashCode()
override bool ForAllChildNodes(ScriptNodeEventHandler Callback, object State, SearchMethod Order)
Calls the callback method for all child nodes.
DropCollection(SourceDefinition Source, int Start, int Length, Expression Expression)
Executes an DROP COLLECTION|TABLE ... statement against the object database.
override bool Equals(object obj)
Abstract base class for source definitions
abstract Task< IDataSource > GetSource(Variables Variables)
Gets the actual data source, from its definition.
Basic interface for all types of elements.
Interface for script nodes with asynchronous evaluation
Interface for data sources that can be used in SQL statements.
Task DropCollection()
Drops the collection from the source.
delegate bool ScriptNodeEventHandler(ScriptNode Node, out ScriptNode NewNode, object State)
Delegate for ScriptNode callback methods.
SearchMethod
Method to traverse the expression structure