class documentation
class AnnotateAstVisitor(traces.MatchAstVisitor): (source)
Traverses an AST and sets type information on its nodes. This is modeled after ast.NodeVisitor, but doesn't inherit from it because it is ast-module agnostic so that different AST implementations can be used.
Method | visit_ |
Undocumented |
Method | visit_ |
Undocumented |
Method | visit_ |
Undocumented |
Method | _maybe |
Annotates a node. |
Method | _maybe |
Sets type information on the node, if there is any to set. |
Inherited from MatchAstVisitor
:
Method | __init__ |
Undocumented |
Method | enter_ |
Undocumented |
Method | enter_ |
Undocumented |
Method | leave_ |
Undocumented |
Method | leave_ |
Undocumented |
Method | match |
Gets the traces for the given node, along with their locations. |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Method | match_ |
Undocumented |
Instance Variable | source |
Undocumented |
Method | _get |
Undocumented |
Method | _get |
Undocumented |
Method | _get |
Yields matching traces. |
Method | _match |
Undocumented |
Method | _match |
Undocumented |
Instance Variable | _assign |
Undocumented |
Instance Variable | _matched |
Undocumented |
Inherited from BaseVisitor
(via MatchAstVisitor
):
Method | enter |
Does a pre-order traversal of the AST. |
Method | generic |
Called when no visit function is found for a node type. |
Method | leave |
Called after visit() to do any cleanup that enter() needs. |
Method | visit |
Does a post-order traversal of the AST. |
Method | _call |
Undocumented |
Method | _children |
Children to recurse over. |
Instance Variable | _ast |
Undocumented |
Instance Variable | _node |
Undocumented |