Commit 62f6b0ef authored by Christian Hergert's avatar Christian Hergert

function: use a table for parameters

parent 877e0756
......@@ -28,30 +28,13 @@
{{if function.has_child_typed(Girst.Parameters)}}
{{Girst.title4("Parameters")}}
{{for param in function.get_parameters()}}
:{{param.name}}:
:Type: {{Girst.clink_full(param.get_lhs_ctype(), param.get_lhs(), "")}}
{{if param.direction && (param.direction != "in")}}
:Direction: {{param.direction}}
{{end}}
{{if param.nullable || param.allow_none}}
:Nullable: Yes
{{end}}
{{if param.transfer_ownership != "none"}}
:Transfer: {{param.transfer_ownership}}
.. csv-table::
:class: column1-right column1-code column2-code
:widths: 1, 1, 100
:escape: \
{{end}}
{{if param.has_child_typed(Girst.Doc)}}
{{param.first_typed(Girst.Doc).to_c(" ")}}
{{end}}
{{for param in function.get_parameters()}}
"{{Girst.clink_full(param.get_lhs_ctype(), param.get_lhs(), "")}}","{{param.name}}","{{if param.has_child_typed(Girst.Doc)}}{{Girst.one_line(param.first_typed(Girst.Doc).inner_text, "c")}}{{end}} {{param.annotations()}}"
{{end}}
{{end}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment