Module implementing a node visitor for bytes and str instances.
None |
TextVisitor | Class implementing a node visitor for bytes and str instances. |
None |
Class implementing a node visitor for bytes and str instances.
It tries to detect docstrings as string of the first expression of each module, class or function.
None |
None |
TextVisitor | Constructor |
__addNode | Private method to add a node to our list of nodes. |
__visitBody | Private method to traverse the body of the node manually. |
__visitDefinition | Private method handling class and function definitions. |
visit_AsyncFunctionDef | Public method to handle an asynchronous function definition. |
visit_Call | Public method to handle a function call. |
visit_ClassDef | Public method to handle a class definition. |
visit_Constant | Public method to handle constant nodes. |
visit_FunctionDef | Public method to handle a function definition. |
visit_Module | Public method to handle a module. |
None |
Constructor
Private method to add a node to our list of nodes.
Private method to traverse the body of the node manually.
If the first node is an expression which contains a string or bytes it marks that as a docstring.
Private method handling class and function definitions.
Public method to handle an asynchronous function definition.
Public method to handle a function call.
Public method to handle a class definition.
Public method to handle constant nodes.
Public method to handle a function definition.
Public method to handle a module.