Type type = v.getType();
types[i++] = type.isSubtypeOf(Factory.Tree) ? rtf.nonTerminalType((IConstructor) v) : type;
}
if (func == null) {
throw new UndeclaredFunction(Names.fullName(qualifiedName), types, this, getCurrentAST());
}
return func.call(getMonitor(), types, args, kwArgs).getValue();
}