* {@inheritDoc}
*/
@Override
void generateFunctionDoc(Function function, int index) {
FunctionalAgentMetadata metadata = (FunctionalAgentMetadata)getMetadata(CALFeatureName.getFunctionFeatureName(function.getName()), getLocale());
CALDocComment docComment = function.getCALDocComment();
// We delegate the generation to the helper that handles all function agents.
// The helper expects to work in the context of a definition list, so we create one.
currentPage.openTag(HTML.Tag.DL, classAttribute(getScopeStyleClass(function.getScope())));
generateFunctionalAgentDoc(function, labelMaker.getLabel(function), metadata, docComment, index, true);