Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AddArgument()

void System.Data.FunctionNode.AddArgument ( ExpressionNode argument)
inlinepackage

Definition at line 74 of file FunctionNode.cs.

75 {
76 if (!s_funcs[_info]._isVariantArgumentList && _argumentCount >= s_funcs[_info]._argumentCount)
77 {
78 throw ExprException.FunctionArgumentCount(_name);
79 }
80 if (_arguments == null)
81 {
83 }
84 else if (_argumentCount == _arguments.Length)
85 {
89 }
91 }
ExpressionNode(DataTable table)
static readonly Function[] s_funcs
readonly string _name
ExpressionNode[] _arguments

References System.Data.FunctionNode._argumentCount, System.Data.FunctionNode._arguments, System.Data.FunctionNode._info, System.Data.FunctionNode._name, System.array, System.Array.Copy(), System.Runtime.Serialization.Dictionary, System.Data.ExprException.FunctionArgumentCount(), and System.Data.FunctionNode.s_funcs.

Referenced by System.Data.ExpressionParser.Parse().