protected void AssertFunctionCallExpression(string code, string fname, params object[] args) { FuncCallExprNode fcall = this.GenerateAST(code).As <FuncCallExprNode>(); this.AssertChildrenParentProperties(fcall); Assert.That(fcall.Identifier, Is.EqualTo(fname)); if (args is null || !args.Any()) { Assert.That(fcall.Arguments, Is.Null); }
public virtual TResult Visit(FuncCallExprNode node) => this.VisitChildren(node);
public override Expr Visit(FuncCallExprNode node) => Expr.Variable($"r_{node.Identifier}");