API reference
python:astx:astx.packages.Program
class Program
Program(name: str = 'main', target: Target = Target('', ''), modules: list[Module] = [], packages: list[Package] = [], loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/packages.py:195
AST class for Program.
Attributes
-
name — Name identifying this declaration.; Type: str
-
modules — Modules.; Type: list[Module]
-
packages — Packages.; Type: list[Package]
-
target — Destination of the operation.; Type: Target
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nodes — Type: list[ASTType]
-
position — Type: int
Methods
Attributes
- target —