micropython

docs/annotations.txt

440:cf329206154e
2011-07-03 Paul Boddie Introduced constant usage tracking.
     1 AST Node Annotations
     2 ====================
     3 
     4 Attribute Users
     5 ---------------
     6 
     7 _attrnames      defines a dictionary mapping local names to sets of attribute
     8                 names found to be used with those names in a branch
     9 _attrcombined   defines a dictionary mapping local names to sets of attribute
    10                 names found to be used with those names for the entire lifetime
    11                 of a particular attribute user
    12 _attrtypes      defines types deduced from the combined attribute usage details
    13 _attrdefs       defines definition-related users which consume usage details
    14                 from the node
    15 
    16 Attribute Accessors
    17 -------------------
    18 
    19 _attrusers      defines a dictionary mapping local names to sets of nodes
    20                 defining those names
    21 
    22 Name Accessors
    23 --------------
    24 
    25 _scope          set as "constant", "local", "global" or "builtins"
    26 
    27 Program Units
    28 -------------
    29 
    30 unit            refers to a micropython Class, Function or Module instance