2using System.Collections.Generic;
3using System.Threading.Tasks;
37 LinkedList<IElement> Result =
new LinkedList<IElement>();
42 return Operand.Encapsulate(Result,
this);
58 LinkedList<IElement> Result =
new LinkedList<IElement>();
63 return Operand.Encapsulate(Result,
this);
Class managing a script expression.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
int Start
Start position in script expression.
Base class for all unary operators.
ScriptNode Operand
Operand.
Base class for unary scalar operators.
virtual Task< IElement > EvaluateScalarAsync(IElement Operand, Variables Variables)
Evaluates the operator on scalar operands.
abstract IElement EvaluateScalar(IElement Operand, Variables Variables)
Evaluates the operator on scalar operands.
override IElement Evaluate(IElement Operand, Variables Variables)
Evaluates the operator.
override async Task< IElement > EvaluateAsync(IElement Operand, Variables Variables)
Evaluates the operator.
UnaryScalarOperator(ScriptNode Operand, int Start, int Length, Expression Expression)
Base class for unary scalar operators.
Basic interface for all types of elements.