class documentation
class ASTConverter: (source)
Undocumented
Method | __init__ |
Undocumented |
Method | as |
Undocumented |
Method | as |
Undocumented |
Method | do |
Helper shared between visit_FunctionDef and visit_AsyncFunctionDef. |
Method | fail |
Undocumented |
Method | fail |
Undocumented |
Method | fail |
Undocumented |
Method | fix |
Undocumented |
Method | from |
Undocumented |
Method | from |
Undocumented |
Method | get |
Undocumented |
Method | group |
Undocumented |
Method | in |
Undocumented |
Method | make |
Undocumented |
Method | note |
Undocumented |
Method | set |
Undocumented |
Method | set |
Undocumented |
Method | transform |
Undocumented |
Method | translate |
Undocumented |
Method | translate |
Return the actual, internal module id for a source text id. |
Method | translate |
Undocumented |
Method | translate |
Undocumented |
Method | translate |
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_ |
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_ |
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_ |
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_ |
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_ |
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_ |
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_ |
Undocumented |
Method | visit_ |
Undocumented |
Constant | comp |
Undocumented |
Constant | op |
Undocumented |
Instance Variable | class |
Undocumented |
Instance Variable | errors |
Undocumented |
Instance Variable | imports |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | type |
Undocumented |
Instance Variable | visitor |
Undocumented |
Method | _check |
Check if IfStmt contains only overloads with the same name. Return overload_name if found, None otherwise. |
Method | _get |
Return block from IfStmt that will get executed. |
Method | _is |
Check stmt to make sure it is a stripped IfStmt. |
Method | _strip |
Remove contents from IfStmt. |
def do_func_def(self, n:
ast3.FunctionDef|ast3.AsyncFunctionDef
, is_coroutine: bool
= False) -> FuncDef|Decorator
:
(source)
¶
Helper shared between visit_FunctionDef and visit_AsyncFunctionDef.
def fail(self, msg:
str
, line: int
, column: int
, blocker: bool
= True, code: codes.ErrorCode
= codes.SYNTAX):
(source)
¶
Undocumented
def make_argument(self, arg:
ast3.arg
, default: ast3.expr|None
, kind: ArgKind
, no_type_check: bool
, pos_only: bool
= False) -> Argument
:
(source)
¶
Undocumented
def transform_args(self, args:
ast3.arguments
, line: int
, no_type_check: bool
= False) -> list[ Argument]
:
(source)
¶
Undocumented
def translate_stmt_list(self, stmts:
Sequence[ ast3.stmt]
, ismodule: bool
= False) -> list[ Statement]
:
(source)
¶
Undocumented
def translate_type_comment(self, n:
ast3.stmt|ast3.arg
, type_comment: str|None
) -> ProperType|None
:
(source)
¶
Undocumented
def _check_ifstmt_for_overloads(self, stmt:
IfStmt
, current_overload_name: str|None
= None) -> str|None
:
(source)
¶
Check if IfStmt contains only overloads with the same name. Return overload_name if found, None otherwise.
def _get_executable_if_block_with_overloads(self, stmt:
IfStmt
) -> tuple[ Block|None, IfStmt|None]
:
(source)
¶
Return block from IfStmt that will get executed. Return 0 -> A block if sure that alternative blocks are unreachable. 1 -> An IfStmt if the reachability of it can't be inferred, i.e. the truth value is unknown.