class AstManager(BaseManager): (source)
Known subclasses: klara.klara_z3.cov_manager.CovManager
An ast manager. Responsible for: - building and caching builtins tree depends on python version, - managing the protocol of python operation between python 2/3. - managing registering and executing transformation to the tree - load default and user specifies extension file, stub file
Method | __init__ |
Undocumented |
Method | add |
Undocumented |
Method | apply |
Undocumented |
Method | bootstrap |
Construct builtin class type (e.g. int, float) in ast form This will need to only parse builtins.pyi for the class definition, and construct the class with appropriate locals method with the return type. |
Method | build |
Undocumented |
Method | dump |
Undocumented |
Method | infer |
optional wrapper around infer() |
Method | initialize |
Initialize all required process for analysis. |
Method | load |
Undocumented |
Method | load |
Undocumented |
Method | load |
simply import the file_obj since it's python file. But do some bookkeeping for printing purpose :param file_path: the file path in string to import :return: None |
Method | load |
Undocumented |
Method | make |
make a z3 field for python variable |
Method | reload |
reload all necessary protocol based on config reload the dunder method based on py_version in config |
Method | temp |
save the manager state and restore it after the operation. |
Method | uninitialize |
Undocumented |
Method | unload |
Undocumented |
Constant | BUILTINS |
Undocumented |
Instance Variable | __dict__ |
Undocumented |
Instance Variable | built |
Undocumented |
Instance Variable | builtins |
Undocumented |
Instance Variable | config |
Undocumented |
Instance Variable | loaded |
Undocumented |
Instance Variable | loaded |
Undocumented |
Instance Variable | register |
Undocumented |
Instance Variable | transform |
Undocumented |
Instance Variable | unregister |
Undocumented |
Instance Variable | weakrefs |
Undocumented |
Instance Variable | z3var |
Undocumented |
Method | _fresh |
Undocumented |
Method | _reload |
Undocumented |
Instance Variable | _ast |
Undocumented |
Inherited from BaseManager
:
Method | clear |
Undocumented |
Method | get |
Undocumented |
Method | reset |
Undocumented |
Instance Variable | builtins |
Undocumented |
Instance Variable | infer |
Undocumented |
Instance Variable | infer |
Undocumented |
Instance Variable | logger |
Undocumented |
Instance Variable | skipped |
Undocumented |
Instance Variable | skipped |
Undocumented |
Instance Variable | skipped |
Undocumented |
Instance Variable | skipped |
Undocumented |
Constant | _LOG |
Undocumented |
Constant | _VERBOSITY |
Undocumented |
Class Variable | _core |
Undocumented |
Instance Variable | _manager |
Undocumented |
Construct builtin class type (e.g. int, float) in ast form This will need to only parse builtins.pyi for the class definition, and construct the class with appropriate locals method with the return type.
simply import the file_obj since it's python file. But do some bookkeeping for printing purpose :param file_path: the file path in string to import :return: None
Parameters | |
filestr | Undocumented |
reload all necessary protocol based on config reload the dunder method based on py_version in config