contextInfo.addFlag(SINGLE_STEP_EXECUTION);
resolvedFunction.analyze(contextInfo);
}
public static FunctionCall lookupFunction(Expression self, XQueryContext context, QName funcName, int arity) throws XPathException {
final XQueryAST ast = new XQueryAST();
ast.setLine(self.getLine());
ast.setColumn(self.getColumn());
final List<Expression> args = new ArrayList<Expression>(arity);
for (int i = 0; i < arity; i++) {
args.add(new Function.Placeholder(context));
}
final Expression fun = FunctionFactory.createFunction(context, funcName, ast, null, args, false);