1using System.Collections.Generic;
2using System.Threading.Tasks;
58 return Task.FromResult<
IElement>(this.constant);
69 return this.constant.Equals(CheckAgainst) ? PatternMatchResult.Match :
PatternMatchResult.NoMatch;
89 public override bool Equals(
object obj)
92 this.constant.
Equals(O.constant) &&
99 int Result = base.GetHashCode();
100 Result ^= Result << 5 ^ this.constant.GetHashCode();
Class managing a script expression.
Represents a constant element value.
override PatternMatchResult PatternMatch(IElement CheckAgainst, Dictionary< string, IElement > AlreadyFound)
Performs a pattern match operation.
ConstantElement(IElement Constant, int Start, int Length, Expression Expression)
Represents a constant element value.
string DefaultVariableName
Default variable name, if any, null otherwise.
override bool Equals(object obj)
override IElement Evaluate(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection. This method should be ...
override int GetHashCode()
ScriptNode Differentiate(string VariableName, Variables Variables)
Differentiates a script node, if possible.
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override Task< IElement > EvaluateAsync(Variables Variables)
Evaluates the node, using the variables provided in the Variables collection. This method should be ...
IElement Constant
Constant value.
Base class for leaf nodes in a parsed script tree.
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.
static readonly DoubleNumber ZeroElement
0
Basic interface for all types of elements.
Base interface for lambda expressions.
PatternMatchResult
Status result of a pattern matching operation.