Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c884bbf

Browse files
authored
Update README.rst
1 parent 5305417 commit c884bbf

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

pyt/core/README.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,18 @@ This directory contains miscellaneous code that is imported from different parts
2323

2424

2525

26-
`module_definitions.py`_ contains TODO
26+
`module_definitions.py`_ contains classes created mostly in `stmt_visitor.py`_
27+
28+
- `project_definitions`_ is a global dictionary modifed in the `append_if_local_or_in_imports`_ method of `ModuleDefinitions`_, read in `framework_adaptor.py`_ to `obtain all function nodes`_.
29+
30+
- `ModuleDefinition`_ is created to keep track of parent definitions when visiting functions, classes and __init__.py files in `stmt_visitor.py`_
31+
32+
- `LocalModuleDefinition`_ is created when visiting functions and classes in `stmt_visitor.py`_
33+
34+
- `ModuleDefinitions`_ contains `append_if_local_or_in_imports`_ which is used in when adding a function or class to the module definitions in
35+
36+
37+
.. _obtain all function nodes: https://github.com/python-security/pyt/blob/02461063688fe02226e627c00adfb2c707d89aa0/pyt/web_frameworks/framework_adaptor.py#L93
2738

2839
`node_types.py`_ contains all the different node types created in `expr_visitor.py`_ and `stmt_visitor.py`_
2940

0 commit comments

Comments
 (0)