API reference
python:astx:astx.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:209
Declared as: python:astx:astx.packages.Program.__init__
Initialize the AST instance.
Parameters
-
name — Name identifying the declaration or operation.; Type: str
-
target — Destination of the operation.; Type: Target
-
modules — Modules.; Type: list[Module]
-
packages — Packages.; Type: list[Package]
-
loc — Source coordinates associated with the node.; Type: SourceLocation
Returns
Type: None