class documentation
class BaseVisitor(ast_visitor.BaseVisitor): (source)
Known subclasses: pytype.pyi.parser.AnnotationVisitor
, pytype.pyi.parser.MetadataVisitor
, pytype.pyi.parser._GeneratePytdVisitor
Base visitor for all typed_ast visitors. - Reraises ParseError with position information. - Handles literal constants - Has an optional Definitions member
Method | __init__ |
Undocumented |
Method | enter |
Does a pre-order traversal of the AST. |
Method | leave |
Called after visit() to do any cleanup that enter() needs. |
Method | visit_ |
Undocumented |
Method | visit_ |
Undocumented |
Method | visit_ |
Undocumented |
Method | visit_ |
Undocumented |
Method | visit_ |
Undocumented |
Method | visit_ |
Undocumented |
Method | visit_ |
Undocumented |
Instance Variable | defs |
Undocumented |
Instance Variable | filename |
Undocumented |
Instance Variable | src |
Undocumented |
Instance Variable | subscripted |
Undocumented |
Method | _call |
Undocumented |
Inherited from BaseVisitor
:
Method | generic |
Called when no visit function is found for a node type. |
Method | visit |
Does a post-order traversal of the AST. |
Method | _children |
Children to recurse over. |
Instance Variable | _ast |
Undocumented |
Instance Variable | _node |
Undocumented |
overrides
pytype.ast.visitor.BaseVisitor.leave
Called after visit() to do any cleanup that enter() needs.