API reference
python:astx:astx.packages.Module
class Module
Module(name: str = 'main', loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/packages.py:69
AST main expression class.
Attributes
-
kind — Type: ASTKind
-
name — Type: str
Methods
-
__init__ — Initialize the AST instance.
-
__str__ — Return the string representation of the object.
-
get_struct — Return the AST structure of the object.
Properties
- block — Define an alias for self.nodes.