API reference
python:astx:astx.packages.Program.__init__
method __init__
__init__(name: str = 'main', target: Target = Target('', ''), modules: list[Module] = [], packages: list[Package] = [], loc: SourceLocation = NO_SOURCE_LOCATION) -> None
Source: packages/astx/src/astx/packages.py:236
Initialize the AST instance.
Parameters
-
name — Type: str
-
target — Type: Target
-
modules — Type: list[Module]
-
packages — Type: list[Package]
-
loc — Type: SourceLocation