class VariableCommentPicker(ast.NodeVisitor):
Method | __init__ |
Undocumented |
Method | add_entry |
Undocumented |
Method | add_final_entry |
Undocumented |
Method | add_overload_entry |
Undocumented |
Method | add_variable_annotation |
Undocumented |
Method | add_variable_comment |
Undocumented |
Method | get_line |
Returns specified line. |
Method | get_qualname_for |
Get qualified name for given object as a list of string(s). |
Method | get_self |
Returns the name of the first argument if in a function. |
Method | is_final |
Undocumented |
Method | is_overload |
Undocumented |
Method | visit |
Updates self.previous to the given node. |
Method | visit_AnnAssign |
Handles AnnAssign node and pick up a variable comment. |
Method | visit_Assign |
Handles Assign node and pick up a variable comment. |
Method | visit_AsyncFunctionDef |
Handles AsyncFunctionDef node and set context. |
Method | visit_ClassDef |
Handles ClassDef node and set context. |
Method | visit_Expr |
Handles Expr node and pick up a comment if string. |
Method | visit_FunctionDef |
Handles FunctionDef node and set context. |
Method | visit_Import |
Handles Import node and record the order of definitions. |
Method | visit_ImportFrom |
Handles Import node and record the order of definitions. |
Method | visit_Try |
Handles Try node and processes body and else-clause. |
Instance Variable | annotations |
Undocumented |
Instance Variable | buffers |
Undocumented |
Instance Variable | comments |
Undocumented |
Instance Variable | context |
Undocumented |
Instance Variable | counter |
Undocumented |
Instance Variable | current_classes |
Undocumented |
Instance Variable | current_function |
Undocumented |
Instance Variable | deforders |
Undocumented |
Instance Variable | encoding |
Undocumented |
Instance Variable | finals |
Undocumented |
Instance Variable | overloads |
Undocumented |
Instance Variable | previous |
Undocumented |
Instance Variable | typing |
Undocumented |
Instance Variable | typing_final |
Undocumented |
Instance Variable | typing_overload |
Undocumented |
Undocumented
Parameters | |
buffers:List[ | Undocumented |
encoding:str | Undocumented |
Undocumented
Parameters | |
name:str | Undocumented |
annotation:ast.AST | Undocumented |
Undocumented
Parameters | |
name:str | Undocumented |
comment:str | Undocumented |
Parameters | |
lineno:int | Undocumented |
Returns | |
str | Undocumented |
Parameters | |
name:str | Undocumented |
Returns | |
Optional[ | Undocumented |
Returns | |
Optional[ | Undocumented |
Undocumented
Parameters | |
decorators:List[ | Undocumented |
Returns | |
bool | Undocumented |
Undocumented
Parameters | |
decorators:List[ | Undocumented |
Returns | |
bool | Undocumented |
Parameters | |
node:ast.AnnAssign | Undocumented |
Parameters | |
node:ast.Assign | Undocumented |
Parameters | |
node:ast.AsyncFunctionDef | Undocumented |
Parameters | |
node:ast.ClassDef | Undocumented |
Parameters | |
node:ast.Expr | Undocumented |
Parameters | |
node:ast.FunctionDef | Undocumented |
Parameters | |
node:ast.Import | Undocumented |
Parameters | |
node:ast.ImportFrom | Undocumented |