class ModuleVistor(ast.NodeVisitor):
Known subclasses: pydoctor.zopeinterface.ZopeInterfaceModuleVisitor
Undocumented
Method | __init__ |
Undocumented |
Method | default |
Undocumented |
Method | visit_AnnAssign |
Undocumented |
Method | visit_Assign |
Undocumented |
Method | visit_AsyncFunctionDef |
Undocumented |
Method | visit_ClassDef |
Undocumented |
Method | visit_Expr |
Undocumented |
Method | visit_FunctionDef |
Undocumented |
Method | visit_Import |
Process an import statement. |
Method | visit_ImportFrom |
Undocumented |
Method | visit_Module |
Undocumented |
Instance Variable | builder |
Undocumented |
Instance Variable | currAttr |
Undocumented |
Instance Variable | module |
Undocumented |
Instance Variable | newAttr |
Undocumented |
Instance Variable | system |
Undocumented |
Method | _annotation_from_attrib |
No summary |
Method | _annotations_from_function |
No summary |
Method | _handleAssignment |
Undocumented |
Method | _handleAssignmentInClass |
Undocumented |
Method | _handleAssignmentInModule |
Undocumented |
Method | _handleClassVar |
Undocumented |
Method | _handleConstant |
Must be called after obj.setLineNumber() to have the right line number in the warning. |
Method | _handleDocstringUpdate |
Undocumented |
Method | _handleFunctionDef |
Undocumented |
Method | _handleInstanceVar |
Undocumented |
Method | _handleModuleVar |
Undocumented |
Method | _handleOldSchoolMethodDecoration |
Undocumented |
Method | _handlePropertyDef |
Undocumented |
Method | _importAll |
Handle a from <modname> import * statement. |
Method | _importNames |
Handle a from <modname> import <names> statement. |
Method | _unstring_annotation |
Replace all strings in the given expression by parsed versions. @return: The unstringed node. If parsing fails, an error is logged and the original node is returned. |
Method | _warnsConstantAssigmentOverride |
Undocumented |
Method | _warnsConstantReAssigmentInInstance |
Undocumented |
Undocumented
Parameters | |
builder:ASTBuilder | Undocumented |
module:model.Module | Undocumented |
pydoctor.zopeinterface.ZopeInterfaceModuleVisitor
Undocumented
Parameters | |
node:ast.ClassDef | Undocumented |
Returns | |
Optional[ | 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:ast.Import | Undocumented |
Parameters | |
expr:ast.expr | The expression's AST. |
ctx:model.Documentable | The context in which this expression is evaluated. |
Returns | |
Optional[ | A type annotation, or None if the expression is not an attr.ib definition or contains no type information. |
Parameters | |
func:Union[ | The function definition's AST. |
Returns | |
Mapping[ | Mapping from argument name to annotation. The name return is used for the return type. Unannotated arguments are omitted. |
Undocumented
Parameters | |
targetNode:ast.expr | Undocumented |
annotation:Optional[ | Undocumented |
expr:Optional[ | Undocumented |
lineno:int | Undocumented |
pydoctor.zopeinterface.ZopeInterfaceModuleVisitor
Undocumented
Parameters | |
target:str | Undocumented |
annotation:Optional[ | Undocumented |
expr:Optional[ | Undocumented |
lineno:int | Undocumented |
pydoctor.zopeinterface.ZopeInterfaceModuleVisitor
Undocumented
Parameters | |
target:str | Undocumented |
annotation:Optional[ | Undocumented |
expr:Optional[ | Undocumented |
lineno:int | Undocumented |
Undocumented
Parameters | |
name:str | Undocumented |
annotation:Optional[ | Undocumented |
expr:Optional[ | Undocumented |
lineno:int | Undocumented |
Parameters | |
obj:model.Attribute | Undocumented |
value:Optional[ | Undocumented |
lineno:int | Undocumented |
Undocumented
Parameters | |
targetNode:ast.expr | Undocumented |
expr:Optional[ | Undocumented |
lineno:int | Undocumented |
Undocumented
Parameters | |
node:Union[ | Undocumented |
is_async:bool | Undocumented |
Undocumented
Parameters | |
name:str | Undocumented |
annotation:Optional[ | Undocumented |
expr:Optional[ | Undocumented |
lineno:int | Undocumented |
Undocumented
Parameters | |
target:str | Undocumented |
annotation:Optional[ | Undocumented |
expr:Optional[ | Undocumented |
lineno:int | Undocumented |
Undocumented
Parameters | |
target:str | Undocumented |
expr:Optional[ | Undocumented |
Returns | |
bool | Undocumented |
Undocumented
Parameters | |
node:Union[ | Undocumented |
docstring:Optional[ | Undocumented |
lineno:int | Undocumented |
Returns | |
model.Attribute | Undocumented |
Parameters | |
modname:str | Undocumented |
Parameters | |
modname:str | Undocumented |
names:Iterable[ | Undocumented |
Parameters | |
node:ast.expr | Undocumented |
Returns | |
ast.expr | The unstringed node. If parsing fails, an error is logged and the original node is returned. |
Undocumented
Parameters | |
obj:model.Attribute | Undocumented |
lineno_offset:int | Undocumented |
Undocumented
Parameters | |
obj:model.Attribute | Undocumented |
lineno_offset:int | Undocumented |