1using System.Threading.Tasks;
47 object Obj =
Argument1.AssociatedObjectValue;
53 if (Obj is XmlElement E)
55 else if (Obj is XmlDocument Doc)
56 return new StringValue(Doc.DocumentElement.GetAttribute(Name));
Script runtime exception.
Class managing a script expression.
Base class for funcions of two scalar variables.
ScriptNode Argument2
Function argument 2.
ScriptNode Argument1
Function argument 1.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
override string ToString()
int Start
Start position in script expression.
Gets the value of an attribute of an XML Element.
override string FunctionName
Name of the function
GetAttribute(ScriptNode Xml, ScriptNode Name, int Start, int Length, Expression Expression)
Gets the value of an attribute of an XML Element.
override string[] DefaultArgumentNames
Default Argument names
override IElement EvaluateScalar(IElement Argument1, IElement Argument2, Variables Variables)
Evaluates the function on two scalar arguments.
override Task< IElement > EvaluateScalarAsync(IElement Argument1, IElement Argument2, Variables Variables)
Evaluates the function on two scalar arguments.
Basic interface for all types of elements.