/usr/lib64/python2.7/compiler
NameSizeModeActions
ast.py375080644editdlrm
ast.pyc721250644editdlrm
ast.pyo721250644editdlrm
consts.py4680644editdlrm
consts.pyc7370644editdlrm
consts.pyo7370644editdlrm
future.py18930644editdlrm
future.pyc29560644editdlrm
future.pyo29560644editdlrm
misc.py17940644editdlrm
misc.pyc37330644editdlrm
misc.pyo37330644editdlrm
pyassem.py242680644editdlrm
pyassem.pyc259510644editdlrm
pyassem.pyo253770644editdlrm
pycodegen.py478090644editdlrm
pycodegen.pyc565150644editdlrm
pycodegen.pyo560710644editdlrm
symbols.py144890644editdlrm
symbols.pyc176770644editdlrm
symbols.pyo176430644editdlrm
syntax.py14440644editdlrm
syntax.pyc18820644editdlrm
syntax.pyo18820644editdlrm
transformer.py531160644editdlrm
transformer.pyc476450644editdlrm
transformer.pyo458300644editdlrm
visitor.py38960644editdlrm
visitor.pyc41870644editdlrm
visitor.pyo41870644editdlrm
__init__.py10230644editdlrm
__init__.pyc12970644editdlrm
__init__.pyo12970644editdlrm
Edit: /usr/lib64/python2.7/compiler/visitor.pyc (4187B)
ó {fc@s[ddlmZdd d„ƒYZdefd„ƒYZeZddd„Zd„ZdS( iÿÿÿÿ(tastt ASTVisitorcBs8eZdZdZd„Zd„Zd„Zd„ZRS(sPerforms a depth-first walk of the AST The ASTVisitor will walk the AST, performing either a preorder or postorder traversal depending on which method is called. methods: preorder(tree, visitor) postorder(tree, visitor) tree: an instance of ast.Node visitor: an instance with visitXXX methods The ASTVisitor is responsible for walking over the tree in the correct order. For each node, it checks the visitor argument for a method named 'visitNodeType' where NodeType is the name of the node's class, e.g. Class. If the method exists, it is called with the node as its sole argument. The visitor method for a particular node type can control how child nodes are visited during a preorder walk. (It can't control the order during a postorder walk, because it is called _after_ the walk has occurred.) The ASTVisitor modifies the visitor argument by adding a visit method to the visitor; this method can be used to visit a child node of arbitrary type. icCsd|_i|_dS(N(tNonetnodet_cache(tself((s(/usr/lib64/python2.7/compiler/visitor.pyt__init__"s cGs+x$|jƒD]}|j||Œq WdS(N(t getChildNodestdispatch(RRtargstchild((s(/usr/lib64/python2.7/compiler/visitor.pytdefault&scGsu||_|j}|jj|dƒ}|dkrh|j}t|jd||jƒ}||j|s ;#