FuncDefnPointer#
- class hugr.package.FuncDefnPointer(package: Package, module_index: int, node: Node)[source]#
Bases:
NodePointer
[FuncDefn
]Pointer to a function definition in a module.
- Parameters:
package – Package pointed to.
module_index – Index of the module in the package.
node – Node containing the function definition
Methods
Create an executable package from a module containing a main function.
Attributes
Function definition.
Hugr definition of the module.
Get the operation of the node.
Node pointed to.
Index of the module in the package.
Package pointed to.
- property node_op: OpType#
Get the operation of the node.
- to_executable_package() ExecutablePackage #
Create an executable package from a module containing a main function.
- Raises:
ValueError – If the module does not contain a main function.