end_sub();
}
+void DumpTree::visit(Passthrough &pass)
+{
+ append("passthrough");
+ if(pass.subscript)
+ {
+ begin_sub();
+ last_branch();
+ pass.subscript->visit(*this);
+ end_sub();
+ }
+}
+
void DumpTree::visit(Return &ret)
{
if(ret.expression)
virtual void visit(FunctionDeclaration &);
virtual void visit(Conditional &);
virtual void visit(Iteration &);
+ virtual void visit(Passthrough &);
virtual void visit(Return &);
virtual void visit(Jump &);
using TraversingVisitor::visit;
}
}
+void Formatter::visit(Passthrough &pass)
+{
+ append("passthrough");
+ if(pass.subscript)
+ {
+ append('[');
+ pass.subscript->visit(*this);
+ append(']');
+ }
+ append(';');
+}
+
void Formatter::visit(Return &ret)
{
append("return");
virtual void visit(FunctionDeclaration &);
virtual void visit(Conditional &);
virtual void visit(Iteration &);
+ virtual void visit(Passthrough &);
virtual void visit(Return &);
virtual void visit(Jump &);
using TraversingVisitor::visit;