1using System.Threading.Tasks;
85 string Host = c < 3 ? null :
GetHost(
Arguments[i++].AssociatedObjectValue,
this);
87 object DefaultValue =
Arguments[i].AssociatedObjectValue;
90 if (
string.IsNullOrEmpty(Host))
108 else if (Value is
string s)
110 else if (Value is
null)
Static class managing persistent host settings. Host settings default to runtime settings if host-spe...
static async Task< string > GetAsync(string Host, string Key, string DefaultValue)
Gets a string-valued setting.
Static class managing persistent settings.
static async Task< string > GetAsync(string Key, string DefaultValue)
Gets a string-valued setting.
Script runtime exception.
Class managing a script expression.
static IElement Encapsulate(object Value)
Encapsulates an object.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes2Scalar
Two scalar parameters.
static readonly ArgumentType[] argumentTypes3Scalar
Three scalar parameters.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
override string ToString()
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Gets a runtime setting with name Name. If Host is provided, the function first tries to get the corre...
static string GetHost(object Value, ScriptNode Node)
Gets the host name from a value.
override async Task< IElement > EvaluateAsync(IElement[] Arguments, Variables Variables)
Evaluates the function.
override string[] DefaultArgumentNames
Default Argument names
override string FunctionName
Name of the function
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
GetSetting(ScriptNode Name, ScriptNode DefaultValue, int Start, int Length, Expression Expression)
Gets a runtime setting with name Name. If Host is provided, the function first tries to get the corre...
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
GetSetting(ScriptNode Host, ScriptNode Name, ScriptNode DefaultValue, int Start, int Length, Expression Expression)
Gets a runtime setting with name Name. If Host is provided, the function first tries to get the corre...
Interface for objects that contain a reference to a host.
Basic interface for all types of elements.