class documentation
class ASTNode(ast.AST, ConcreteASTNode): (source)
Undocumented
Inherited from ASTNode
:
Method | infer |
Undocumented |
Method | locate |
Find the field of this node that contains the given child. :param child: The child node to search fields for. :param recurse: Whether to recurse in all nested children to find the node. :type child: ASTNode :returns: A tuple of the name of the field that contains the child,... |
Method | lookup |
Lookup where the given variable is assigned. |
Method | node |
Yield parent, grandparent, etc until there are no more. |
Method | parent |
Check if this node is the parent of the given node. :param node: The node to check if it is the child. :type node: ASTNode :returns: True if this node is the parent of the given node, |
Method | resolve |
Resolve a basename to get its fully qualified name in the context of self. |
Method | unparse |
Undocumented |
Class Variable | end |
Undocumented |
Class Variable | parent |
None for Modules. |
Property | children |
Build and return the children of this node. |
Property | first |
Return the first child of this node. |
Property | frame |
Returns the first parent ast.Lambda , ast.FunctionDef , ast.AsyncFunctionDef ,`ast.ClassDef` or ast.Module . |
Property | kind |
Return the kind of this node. |
Property | last |
Return the lasts child of this node. |
Property | lineno |
Undocumented |
Property | locals |
Undocumented |
Property | next |
Return the next sibling of this node. |
Property | next |
Return the next siblings of this node, starting from the closest. |
Property | position |
Tell the position of this node amongst its siblings. |
Property | previous |
Return the previous sibling of this node. |
Property | previous |
Return the previous siblings of this node, starting from the closest. |
Property | qname |
Get the 'qualified' name of the node. |
Property | root |
Return the root node of the syntax tree. |
Property | scope |
The scope is which this expression can be resolved. This is generally equal to the frame, expect for nodes defined in decorators, in this case the scope is the upper scope. |
Property | siblings |
Return the siblings of this node. |
Property | statement |
The first parent node, including self, marked as statement node. When called on a Module this returns self. |
Method | _report |
Log an error or warning about this node object. |
Class Variable | _filename |
Undocumented |
Class Variable | _is |
Undocumented |
Class Variable | _locals |
Undocumented |
Class Variable | _modname |
Undocumented |
Class Variable | _parser |
Undocumented |
Property | _is |
Return True if the node is the child of a decorator |