methodparam — Parameters to a method
methodparam ::=
type?parameterinitializer?funcparamsCommon attributes and common linking attributes.
Additional attributes:
In the syntax summary of a constructorsynopsis, destructorsynopsis, or methodsynopsis, methodparam provides the description of a parameter to the method. Typically, this includes the data type of the parameter and its
name, but may also include an initial value and other modifiers.
Formatted inline. For a complete description of the processing expectations, see classsynopsis.
Common attributes and common linking attributes.
Indicates optionality.
| Enumerated values: | |
|---|---|
| “opt” |
Formatted to indicate that it is optional. |
| “plain” |
Formatted without indication. |
| “req” |
Formatted to indicate that it is required. |
Indicates whether or not repetition is possible.
| Enumerated values: | |
|---|---|
| “norepeat” |
Can not be repeated. |
| “repeat” |
Can be repeated. |
These elements contain methodparam: constructorsynopsis, destructorsynopsis, methodsynopsis.
The following elements occur in methodparam: funcparams, initializer, modifier, parameter, type.