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

◆ Check()

void System.Data.FunctionNode.Check ( )
inlinepackage

Definition at line 491 of file FunctionNode.cs.

492 {
493 if (_info < 0)
494 {
495 throw ExprException.UndefinedFunction(_name);
496 }
497 if (s_funcs[_info]._isVariantArgumentList)
498 {
500 {
501 if (s_funcs[_info]._id == FunctionId.In)
502 {
503 throw ExprException.InWithoutList();
504 }
505 throw ExprException.FunctionArgumentCount(_name);
506 }
507 }
509 {
510 throw ExprException.FunctionArgumentCount(_name);
511 }
512 }
static readonly Function[] s_funcs
readonly string _name

References System.Data.FunctionNode._argumentCount, System.Data.FunctionNode._info, System.Data.FunctionNode._name, System.Data.ExprException.FunctionArgumentCount(), System.Data.ExprException.InWithoutList(), System.Data.FunctionNode.s_funcs, and System.Data.ExprException.UndefinedFunction().

Referenced by System.Data.FunctionNode.Bind(), and System.Data.ExpressionParser.Parse().