Routine_Interface¶
- interface Routine_Interface (physical)¶
common parts of routine definitions and declarations
- Direct parents:
inherits Parameter_List_Interface
- Inherited interfaces:
- Direct child interfaces:
subinterface Operator_Interface
subinterface Method_Interface
subinterface Static_Method_Interface
subinterface Property_Or_Event_Accessor_Interface
- Direct implementations:
class Callable_Unit_Definition
class Routine_Declaration
Field
Kind
Type
Description
Return_Type
syntactic
interface Possibly_Attributed_Type_Interface
It’s syntactic because the type may be defined in-place in case of C structs; in the more usual semantic case, the child will be a Type_Selection node
Calling_Convention
attribute
Calling convention that was syntactically present.
Attributes
attribute
bitfield Physical_Routine_Attributes_Type
Bitfield of flags like is_inline, is_const etc.
Trailing_Requires_Clause
syntactic
class Expression
Parameters (from Parameter_List_Interface)
syntactic
list of class Possibly_Attributed_Parameter_Interface
All parameters, including the ellipsis, but excluding
thisUsually some Parameter_Definitions, but could also be an Attributed_Definition. Useskip_decorators()to get the parameter itself.