Emit a function directive for all functions