zeek/testing/btest/Baseline/doc.zeekygen.func-params/autogen-reST-func-params.rst
Arne Welzel 2007eeae1b zeekygen: Render function parameters as :param x: instead of
We're currently rendering parameter descriptions from .bif file into
the .rst as follows:

    :cid: The connection identifier.

    :aid: The analyzer ID.

Switch this to :param cid: instead so that we can have Sphinx deal with
this as param docfield and group all parameters into a single section.

Currently, having the bare :cid: style causes sphinx to treat it as an
unknown field type, capitalize it and render it.
2023-05-16 20:21:12 +02:00

33 lines
805 B
ReStructuredText

### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
.. zeek:id:: test_func_params_func
:source-code: <...>/func-params.zeek 11 11
:Type: :zeek:type:`function` (i: :zeek:type:`int`, j: :zeek:type:`int`) : :zeek:type:`string`
This is a global function declaration.
:param i: First param.
:param j: Second param.
:returns: A string.
.. zeek:type:: test_func_params_rec
:source-code: <...>/func-params.zeek 13 21
:Type: :zeek:type:`record`
field_func: :zeek:type:`function` (i: :zeek:type:`int`, j: :zeek:type:`int`) : :zeek:type:`string`
This is a record field function.
:param i: First param.
:param j: Second param.
:returns: A string.