1 AST Node Annotations
2 ====================
3
4 These annotations should be defined in the revised compiler.ast classes.
5
6 Evaluation Results
7 ------------------
8
9 _attr notes the result associated with an attribute access
10 operation during inspection
11
12 Attribute Users
13 ---------------
14
15 _attrcontributors defines nodes contributing to combined attribute usage known
16 to a node
17 _attrcombined defines a dictionary mapping local names to sets of
18 attribute names found to be used with those names for the
19 entire lifetime of a particular attribute user
20 _attrtypes defines types deduced either from combined attribute usage
21 details (for users)
22
23 Attribute Contributors
24 ----------------------
25
26 _attrnames defines a dictionary mapping local names to sets of
27 attribute names found to be used with those names in a
28 branch
29 _attrmerged defines a dictionary mapping local names to sets of
30 attribute names merging combined observations with locally
31 applicable observations, indicating usage specific to a
32 region of the code
33 _attrspecifictypes defines specific types from merged attribute usage details
34 (for non-user nodes)
35 _attrdefs defines definition-related users which consume usage details
36 from the node
37
38 Attribute Accessors
39 -------------------
40
41 _attrusers defines a dictionary mapping local names to sets of nodes
42 defining those names
43
44 Name Accessors
45 --------------
46
47 _scope set as "constant", "local", "global" or "builtins"
48
49 Program Units
50 -------------
51
52 unit refers to a micropython Class, Function or Module instance