private FunctionDecl resolveCall(String name) {
ListIterator<FunctionContext> iterator = functionStack.listIterator(functionStack.size());
while (iterator.hasPrevious()) {
FunctionDecl functionDecl = iterator.previous().function;
List<Node> whereBlock = functionDecl.whereBlock();
// Well, first see if this is a direct call (usually catches recursion).
if (name.equals(functionDecl.name()))
return functionDecl;