}
protected StringBuilder appendFunction(StringBuilder sb, AbstractFunctionCallExpression expr, Integer indent)
throws AlgebricksException {
assert expr.getExpressionTag() == LogicalExpressionTag.FUNCTION_CALL;
FunctionIdentifier fi = expr.getFunctionIdentifier();
List<Mutable<ILogicalExpression>> args = expr.getArguments();
if ((identifiesTypeOperator(fi) || identifiesPathStep(fi)) && args.size() > 1) {
final ILogicalExpression typeEx = args.get(1).getValue();
assert typeEx.getExpressionTag() == LogicalExpressionTag.CONSTANT;
SequenceType type = getSequenceType((ConstantExpression) typeEx);