void appendNamedExprList(Query query, IndentedWriter sb, VarExprList namedExprs)
{
boolean first = true ;
for ( Var var : namedExprs.getVars() )
{
Expr expr = namedExprs.getExpr(var) ;
if ( ! first )
sb.print(" ") ;
if ( expr != null )
{
// The following are safe to write without ()
// Compare/merge with fmtExpr.format
boolean needParens = true ;
if ( expr.isFunction() )
needParens = false ;
// else if ( expr instanceof E_Aggregator )
// // Aggregators are variables (the function maps to an internal variable
// // that is accesses by the E_Aggregator
// needParens = false ;
else if ( expr.isVariable() )
needParens = false ;
if ( ! Var.isAllocVar(var) )
// AS ==> need parens
needParens = true ;