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

Search documentation

Type to search.