mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 13:13:02 +02:00
Detect signal functions based on their return type
This commit is contained in:
parent
33e73953eb
commit
4c7d5c7da7
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
|||
}
|
||||
});
|
||||
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue