API reference
python:arxpy:arxpy.ParsedProgram.__init__
method __init__
__init__(module: astx.Module, source: str, filename: str, module_name: str, origin: Path | None = None, has_source_imports: bool = False) -> None
Source: packages/arxpy/src/arxpy/compiler.py:77
Declared as: python:arxpy:arxpy.compiler.ParsedProgram.__init__
Initialize an attributed parsed program.
Parameters
-
module — Module to process.; Type: astx.Module
-
source — Source input to process.; Type: str
-
filename — Source or resource filename.; Type: str
-
module_name — Module name to resolve.; Type: str
-
origin — Origin.; Type: Path | None
-
has_source_imports — Whether has source imports.; Type: bool
Returns
Type: None