William Candillon has proposed merging lp:~zorba-coders/zorba/xquery_visitor into lp:zorba.
Requested reviews: William Candillon (wcandillon) Matthias Brantner (matthias-brantner) For more details, see: https://code.launchpad.net/~zorba-coders/zorba/xquery_visitor/+merge/106490 Add support for function items test in the print xquery visitor. -- https://code.launchpad.net/~zorba-coders/zorba/xquery_visitor/+merge/106490 Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'src/compiler/parsetree/parsenode_print_xquery_visitor.cpp' --- src/compiler/parsetree/parsenode_print_xquery_visitor.cpp 2012-05-03 12:31:51 +0000 +++ src/compiler/parsetree/parsenode_print_xquery_visitor.cpp 2012-05-19 08:59:18 +0000 @@ -1874,6 +1874,37 @@ } DEFAULT_END_VISIT (CatchExpr); + void* begin_visit(const AnyFunctionTest& n) + { + os << "function (*)"; + return 0; + } + DEFAULT_END_VISIT (AnyFunctionTest); + + void* begin_visit(const TypedFunctionTest& n) + { + os << "function ("; + n.getArgumentTypes()->accept(*this); + os << ") as "; + n.getReturnType()->accept(*this); + return 0; + } + DEFAULT_END_VISIT (TypedFunctionTest); + + void* begin_visit(const TypeList& n) + { + for (int i=0; i<(int)n.size(); ++i) + { + if(i > 0) + { + os << ", "; + } + const SequenceType* e_p = &*(n[i]); + e_p->accept(*this); + } + return 0; + } + DEFAULT_END_VISIT (TypeList); /* full-text-related */ DEFAULT_VISIT (FTAnd); @@ -1921,9 +1952,6 @@ DEFAULT_VISIT (LiteralFunctionItem); DEFAULT_VISIT (InlineFunction); - DEFAULT_VISIT (AnyFunctionTest); - DEFAULT_VISIT (TypeList); - DEFAULT_VISIT (TypedFunctionTest); DEFAULT_VISIT (DynamicFunctionInvocation); DEFAULT_VISIT (ParseErrorNode);
-- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp