builder.append("The element for the top-level function ");
builder.append(node.getName());
builder.append(" in ");
builder.append(getSource().getFullName());
builder.append(" was not set while trying to resolve types.");
AnalysisEngine.getInstance().getLogger().logError(builder.toString(), new AnalysisException());
}
element.setReturnType(computeReturnType(node.getReturnType()));
FunctionTypeImpl type = new FunctionTypeImpl(element);
ClassElement definingClass = element.getAncestor(ClassElement.class);
if (definingClass != null) {