GenParam¶
Import: import system.codegen;
GenParam¶
A function parameter and its type and attributes.
name¶
Parameter name as declared.
ty¶
Declared type of the parameter.
is_ref¶
Whether this is a ref parameter, so assignments to it in the body are visible to the caller.
attributes¶
Attributes attached to this declaration.
constructor¶
Creates a GenParam from its parts. Generators normally receive these from GenContext rather than constructing them.
attribute¶
The first @A attached to this parameter, decoded into A, or None when absent.
has¶
Whether this parameter carries at least one @A attribute.