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 _attrnames defines a dictionary mapping local names to sets of
16 attribute names found to be used with those names in a
17 branch
18 _attrcontributors defines nodes contributing to combined attribute usage known
19 to a node
20 _attrcombined defines a dictionary mapping local names to sets of
21 attribute names found to be used with those names for the
22 entire lifetime of a particular attribute user
23 _attrmerged defines a dictionary mapping local names to sets of
24 attribute names merging combined observations with locally
25 applicable observations, indicating usage specific to a
26 region of the code
27 _attrtypes defines types deduced either from combined attribute usage
28 details (for users)
29 _attrspecifictypes defines specific types from merged attribute usage details
30 (for non-user nodes)
31 _attrdefs defines definition-related users which consume usage details
32 from the node
33
34 Attribute Accessors
35 -------------------
36
37 _attrusers defines a dictionary mapping local names to sets of nodes
38 defining those names
39
40 Name Accessors
41 --------------
42
43 _scope set as "constant", "local", "global" or "builtins"
44
45 Program Units
46 -------------
47
48 unit refers to a micropython Class, Function or Module instance