class documentation
class MatchAstVisitor(visitor.BaseVisitor): (source)
Known subclasses: pytype.tools.annotate_ast.annotate_ast.AnnotateAstVisitor
, pytype.tools.xref.indexer.IndexVisitor
, pytype.tools.traces.traces_test._NotImplementedVisitor
, pytype.tools.traces.traces_test._TestVisitor
An AST visitor to match traces to nodes. Attributes: source: The source and trace information.
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
:
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 |