public override Compiler.AST.Data.Node Visit(Compiler.AST.Data.FormalParameter node)
        {
            var clone = new Compiler.AST.Data.FormalParameter()
            {
                Name = node.Name, IsPlaceholder = node.IsPlaceholder
            };

            foreach (var child in node)
            {
                clone.Add(child.Accept(this));
            }
            return(clone);
        }
Beispiel #2
0
 public virtual T Visit(Compiler.AST.Data.FormalParameter node)
 {
     return(Visit((Compiler.AST.Data.Node)node));
 }