app.processing.pre.inlining =========================== .. py:module:: app.processing.pre.inlining .. autoapi-nested-parse:: Transformer to inline declarations. Module Contents --------------- .. py:class:: InliningTransformer Inlines all integer :py:class:`openqasm3.ast.ConstantDeclaration` in a qasm ast. .. py:method:: visit_ConstantDeclaration(node: openqasm3.ast.ConstantDeclaration) -> openqasm3.ast.ConstantDeclaration | None Removes integer constants from the ast and saves them in a lookup table. .. py:method:: visit_Identifier(node: openqasm3.ast.Identifier) -> openqasm3.ast.Identifier | openqasm3.ast.Expression Rewrites an identifier to use the inlined aliases. :param node: The identifier to process :return: The inlined value or unchanged node