class BuilderVisitor(basebuilder.Collector, visitors.AstVisitor): (source)
Undocumented
Method | __init__ |
Undocumented |
Method | depart |
Undocumented |
Method | depart_ |
Undocumented |
Method | depart |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit_ |
Undocumented |
Method | visit |
Visit a class. |
Method | visit_ |
Handles the inline attribute docstrings. |
Method | visit_ |
Undocumented |
Method | visit |
Process an import statement. |
Method | visit |
Undocumented |
Method | visit |
Visit an {astroid.nodes.Module}. |
Class Variable | module |
Undocumented |
Instance Variable | builder |
Undocumented |
Method | _handle |
Undocumented |
Method | _handle |
Undocumented |
Method | _handle |
Undocumented |
Method | _handle |
Undocumented |
Method | _handle |
Undocumented |
Method | _handle |
Undocumented |
Method | _handle |
Undocumented |
Method | _maybe |
Undocumented |
Method | _new |
Create a new Variable object. |
Method | _new |
Handle a C{from <modname> import <names>} statement. |
Method | _new |
Handle a from <modname> import * statement. |
Method | _parse |
Undocumented |
Method | _set |
Set the docstring of a object from a L{astroid.nodes.Const} node. |
Inherited from Collector
:
Method | add |
See TreeRoot.add_object . |
Instance Variable | root |
The root of the tree. |
pydocspec.basebuilder.Collector.__init__
Undocumented
Parameters | |
builder:Builder | Undocumented |
module:_model.Module | Undocumented |
Process an import statement.
The grammar for the statement is roughly:
mod_as := DOTTEDNAME ['as' NAME] import_stmt := 'import' mod_as (',' mod_as)*
and this is translated into a node which is an instance of Import wih an attribute 'names', which is in turn a list of 2-tuples (dotted_name, as_name) where as_name is None if there was no 'as foo' part of the statement.
Parameters | |
node:astroid.nodes.Import | Undocumented |
Undocumented
Parameters | |
obj:_model.ApiObject | Undocumented |
node:Union[ | Undocumented |
Handle a from <modname> import * statement.
This method may be called in a latter stage of the processing to resolve unresolve imports in the first analysis pass.
Parameters | |
modname:str | Undocumented |
lineno:int | Undocumented |
isbool | Undocumented |
Returns | |
Iterator[ | Undocumented |
Undocumented
Parameters | |
decoratorsIterable[ | Undocumented |
Returns | |
Iterator[ | Undocumented |
Set the docstring of a object from a L{astroid.nodes.Const} node.
Parameters | |
ob:_model.ApiObject | Undocumented |
node:astroid.nodes.Const | Undocumented |