Rebuilds the _ast tree to become an Astroid tree
Method | __init__ |
Undocumented |
Method | check |
Undocumented |
Method | check |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
visit an AnnAssign node by returning a fresh instance of it |
Method | visit |
visit an arg node by returning a fresh AssName instance |
Method | visit |
visit an Arguments node by returning a fresh instance of it |
Method | visit |
visit a Assert node by returning a fresh instance of it |
Method | visit |
visit a Assign node by returning a fresh instance of it |
Method | visit |
visit a node and return a AssignName node |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
visit an Attribute node by returning a fresh instance of it |
Method | visit |
visit a AugAssign node by returning a fresh instance of it |
Method | visit |
Undocumented |
Method | visit |
visit a BinOp node by returning a fresh instance of it |
Method | visit |
visit a BoolOp node by returning a fresh instance of it |
Method | visit |
visit a Break node by returning a fresh instance of it |
Method | visit |
visit a CallFunc node by returning a fresh instance of it |
Method | visit |
visit a ClassDef node to become astroid |
Method | visit |
visit a Compare node by returning a fresh instance of it |
Method | visit |
visit a Comprehension node by returning a fresh instance of it |
Method | visit |
visit a Constant node by returning a fresh instance of Const |
Method | visit |
visit a Continue node by returning a fresh instance of it |
Method | visit |
visit a Decorators node by returning a fresh instance of it |
Method | visit |
visit a Delete node by returning a fresh instance of it |
Method | visit |
visit a Dict node by returning a fresh instance of it |
Method | visit |
visit a DictComp node by returning a fresh instance of it |
Method | visit |
visit an Ellipsis node by returning a fresh instance of Const |
Method | visit |
visit an ExceptHandler node by returning a fresh instance of it |
Method | visit |
visit a Expr node by returning a fresh instance of it |
Method | visit |
visit an ExtSlice node by returning a fresh instance of Tuple |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
visit a GeneratorExp node by returning a fresh instance of it |
Method | visit |
visit a Global node to become astroid |
Method | visit |
visit an If node by returning a fresh instance of it |
Method | visit |
visit a IfExp node by returning a fresh instance of it |
Method | visit |
visit a Import node by returning a fresh instance of it |
Method | visit |
visit an ImportFrom node by returning a fresh instance of it |
Method | visit |
visit a Index node by returning a fresh instance of NodeNG |
Method | visit |
Undocumented |
Method | visit |
visit a Keyword node by returning a fresh instance of it |
Method | visit |
visit a Lambda node by returning a fresh instance of it |
Method | visit |
visit a List node by returning a fresh instance of it |
Method | visit |
visit a ListComp node by returning a fresh instance of it |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
visit a Module node by returning a fresh instance of it |
Method | visit |
visit a Name node by returning a fresh instance of it |
Method | visit |
Undocumented |
Method | visit |
Undocumented |
Method | visit |
visit a Nonlocal node and return a new instance of it |
Method | visit |
visit a Num node by returning a fresh instance of Const |
Method | visit |
visit a Pass node by returning a fresh instance of it |
Method | visit |
visit a Raise node by returning a fresh instance of it |
Method | visit |
visit a Return node by returning a fresh instance of it |
Method | visit |
visit a Set node by returning a fresh instance of it |
Method | visit |
visit a SetComp node by returning a fresh instance of it |
Method | visit |
visit a Slice node by returning a fresh instance of it |
Method | visit |
visit a Starred node and return a new instance of it |
Method | visit |
visit a String/Bytes node by returning a fresh instance of Const |
Method | visit |
visit a Subscript node by returning a fresh instance of it |
Method | visit |
Undocumented |
Method | visit |
visit a TryExcept node by returning a fresh instance of it |
Method | visit |
visit a TryFinally node by returning a fresh instance of it |
Method | visit |
visit a Tuple node by returning a fresh instance of it |
Method | visit |
visit a UnaryOp node by returning a fresh instance of it |
Method | visit |
visit a While node by returning a fresh instance of it |
Method | visit |
Undocumented |
Method | visit |
visit a Yield node by returning a fresh instance of it |
Method | visit |
Undocumented |
Method | _get |
Undocumented |
Method | _get |
Undocumented |
Method | _save |
save assignment situation since node.parent is not available yet |
Method | _visit |
Undocumented |
Method | _visit |
visit a For node by returning a fresh instance of it |
Method | _visit |
visit an FunctionDef node to become astroid |
Method | _visit |
Undocumented |
Instance Variable | _delayed |
Undocumented |
Instance Variable | _global |
Undocumented |
Instance Variable | _import |
Undocumented |
Instance Variable | _manager |
Undocumented |
Instance Variable | _module |
Undocumented |
Instance Variable | _parser |
Undocumented |
Instance Variable | _visit |
Undocumented |
ast.FunctionDef | ast.AsyncFunctionDef
, parent: NodeNG
) -> tuple[ NodeNG | None, list[ NodeNG]] | None
:
(source)
¶
Undocumented
ast.Assign | ast.arg | ast.For | ast.AsyncFor | ast.With | ast.AsyncWith
, parent: nodes.Assign | nodes.Arguments | nodes.For | nodes.AsyncFor | nodes.With | nodes.AsyncWith
) -> NodeNG | None
:
(source)
¶
Undocumented
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
ast.Name
, parent: NodeNG
) -> nodes.Name | nodes.Const | nodes.AssignName | nodes.DelName
:@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
@overload
(source) ¶
Undocumented
visit a node and return a AssignName node
Note: Method not called by 'visit'
ast.AsyncFunctionDef
, parent: NodeNG
) -> nodes.AsyncFunctionDef
:
(source)
¶
Undocumented
ast.Attribute
, parent: NodeNG
) -> nodes.Attribute | nodes.AssignAttr | nodes.DelAttr
:
(source)
¶
visit an Attribute node by returning a fresh instance of it
ast.ClassDef
, parent: NodeNG
, newstyle: bool
= True) -> nodes.ClassDef
:
(source)
¶
visit a ClassDef node to become astroid
ast.comprehension
, parent: NodeNG
) -> nodes.Comprehension
:
(source)
¶
visit a Comprehension node by returning a fresh instance of it
ast.ClassDef | ast.FunctionDef | ast.AsyncFunctionDef
, parent: NodeNG
) -> nodes.Decorators | None
:
(source)
¶
visit a Decorators node by returning a fresh instance of it
Note: Method not called by 'visit'
ast.ExceptHandler
, parent: NodeNG
) -> nodes.ExceptHandler
:
(source)
¶
visit an ExceptHandler node by returning a fresh instance of it
ast.FormattedValue
, parent: NodeNG
) -> nodes.FormattedValue
:
(source)
¶
Undocumented
ast.GeneratorExp
, parent: NodeNG
) -> nodes.GeneratorExp
:
(source)
¶
visit a GeneratorExp node by returning a fresh instance of it
ast.MatchMapping
, parent: NodeNG
) -> nodes.MatchMapping
:
(source)
¶
Undocumented
ast.MatchSequence
, parent: NodeNG
) -> nodes.MatchSequence
:
(source)
¶
Undocumented
ast.MatchSingleton
, parent: NodeNG
) -> nodes.MatchSingleton
:
(source)
¶
Undocumented
ast.Module
, modname: str
, modpath: str
, package: bool
) -> nodes.Module
:
(source)
¶
visit a Module node by returning a fresh instance of it
Note: Method not called by 'visit'
ast.Name
, parent: NodeNG
) -> nodes.Name | nodes.AssignName | nodes.DelName
:
(source)
¶
visit a Name node by returning a fresh instance of it
ast.Try
, parent: NodeNG
) -> nodes.TryExcept | nodes.TryFinally | None
:
(source)
¶
Undocumented
ast.Attribute | ast.List | ast.Name | ast.Subscript | ast.Starred | ast.Tuple
) -> Context
:
(source)
¶
Undocumented
ast.Dict
, parent: NodeNG
, newnode: nodes.Dict
) -> Generator[ tuple[ NodeNG, NodeNG], None, None]
:
(source)
¶
Undocumented
@overload
type[ nodes.AsyncFor]
, node: ast.AsyncFor
, parent: NodeNG
) -> nodes.AsyncFor
:visit a For node by returning a fresh instance of it
type[ nodes.FunctionDef]
, node: ast.FunctionDef
, parent: NodeNG
) -> nodes.FunctionDef
:type[ nodes.AsyncFunctionDef]
, node: ast.AsyncFunctionDef
, parent: NodeNG
) -> nodes.AsyncFunctionDef
:visit an FunctionDef node to become astroid
@overload
type[ nodes.AsyncWith]
, node: ast.AsyncWith
, parent: NodeNG
) -> nodes.AsyncWith
:Undocumented