Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion csharp/gen_csharp_binding.ml
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,12 @@ and returns_xenobject msg =
and get_params_doc msg classname params =
let sessionDoc = "\n /// <param name=\"session\">The session</param>" in
let refDoc = if is_method_static msg then ""
else if (msg.msg_name = "get_by_permission") then
sprintf "\n /// <param name=\"_%s\">The opaque_ref of the given permission</param>" (String.lowercase classname)
else if (msg.msg_name = "revert") then
sprintf "\n /// <param name=\"_%s\">The opaque_ref of the given snapshotted state</param>" (String.lowercase classname)
else sprintf "\n /// <param name=\"_%s\">The opaque_ref of the given %s</param>"
(String.lowercase classname) (String.capitalize classname) in
(String.lowercase classname) (String.lowercase classname) in
String.concat "" (sessionDoc::(refDoc::(List.map (fun x -> get_param_doc msg x) params)))

and get_param_doc msg x =
Expand Down