diff options
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | 2020-03-04 16:16:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 16:16:46 (GMT) |
commit | d82e469048e0e034d8c0020cd33b733be1adf68b (patch) | |
tree | 169c91ab5f25d4f8e0b9ceb8a4c9800428cf82b7 /Include/Python-ast.h | |
parent | 702e09fd0ad72b248b5adfa0fcfdb58600be77f6 (diff) | |
download | cpython-d82e469048e0e034d8c0020cd33b733be1adf68b.zip cpython-d82e469048e0e034d8c0020cd33b733be1adf68b.tar.gz cpython-d82e469048e0e034d8c0020cd33b733be1adf68b.tar.bz2 |
bpo-39639: Remove the AST "Suite" node and associated code (GH-18513)
The AST "Suite" node is no longer used and it can be removed from the ASDL definition and related structures (compiler, visitors, ...).
Co-Authored-By: Victor Stinner <vstinner@python.org>
Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Include/Python-ast.h')
-rw-r--r-- | Include/Python-ast.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Include/Python-ast.h b/Include/Python-ast.h index b9232b1..931a6b9 100644 --- a/Include/Python-ast.h +++ b/Include/Python-ast.h @@ -51,7 +51,7 @@ typedef struct _type_ignore *type_ignore_ty; enum _mod_kind {Module_kind=1, Interactive_kind=2, Expression_kind=3, - FunctionType_kind=4, Suite_kind=5}; + FunctionType_kind=4}; struct _mod { enum _mod_kind kind; union { @@ -73,10 +73,6 @@ struct _mod { expr_ty returns; } FunctionType; - struct { - asdl_seq *body; - } Suite; - } v; }; @@ -483,8 +479,6 @@ mod_ty _Py_Interactive(asdl_seq * body, PyArena *arena); mod_ty _Py_Expression(expr_ty body, PyArena *arena); #define FunctionType(a0, a1, a2) _Py_FunctionType(a0, a1, a2) mod_ty _Py_FunctionType(asdl_seq * argtypes, expr_ty returns, PyArena *arena); -#define Suite(a0, a1) _Py_Suite(a0, a1) -mod_ty _Py_Suite(asdl_seq * body, PyArena *arena); #define FunctionDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) _Py_FunctionDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) stmt_ty _Py_FunctionDef(identifier name, arguments_ty args, asdl_seq * body, asdl_seq * decorator_list, expr_ty returns, string |