Detect signal functions based on their return type

This commit is contained in:
David Rowe 2019-03-22 12:19:20 +13:00
parent 33e73953eb
commit 4c7d5c7da7

View file

@ -121,6 +121,11 @@ exports.handlers = {
e.doclet.description = (e.doclet.description ? e.doclet.description : "") + availableIn;
}
}
if (e.doclet.kind === "function" && e.doclet.returns && e.doclet.returns[0].type
&& e.doclet.returns[0].type.names[0] === "Signal") {
e.doclet.kind = "signal";
}
}
};
@ -178,4 +183,4 @@ exports.defineTags = function (dictionary) {
}
});
};
};