mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
generator: ocaml: Don't link to undocumented methods.
As for the previous commit, don't link to a method if it's not exported by the OCaml bindings.
This commit is contained in:
@@ -189,7 +189,11 @@ end
|
||||
| Not_deprecated -> ()
|
||||
| Replaced_by replacement ->
|
||||
has_tags := true;
|
||||
pr "\n\n @deprecated Use {!%s} instead" replacement
|
||||
let f_replacement = Actions.find replacement in
|
||||
if is_documented f_replacement then
|
||||
pr "\n\n @deprecated Use {!%s} instead" replacement
|
||||
else
|
||||
pr "\n\n @deprecated This is replaced by method %s which is not exported by the OCaml bindings" replacement
|
||||
| Deprecated_no_replacement ->
|
||||
has_tags := true;
|
||||
pr "\n\n @deprecated There is no documented replacement"
|
||||
|
||||
Reference in New Issue
Block a user