You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyt/core/README.rst
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,18 @@ This directory contains miscellaneous code that is imported from different parts
23
23
24
24
25
25
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
27
38
28
39
`node_types.py`_ contains all the different node types created in `expr_visitor.py`_ and `stmt_visitor.py`_
0 commit comments