computeType

This helper function computes a FunctionType out of an existing FunctionDeclaration.