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 /Parser | |
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 'Parser')
-rw-r--r-- | Parser/Python.asdl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl index 126d478..bec30a7 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -3,14 +3,11 @@ module Python { - mod = Module(stmt* body, type_ignore *type_ignores) + mod = Module(stmt* body, type_ignore* type_ignores) | Interactive(stmt* body) | Expression(expr body) | FunctionType(expr* argtypes, expr returns) - -- not really an actual node but useful in Jython's typesystem. - | Suite(stmt* body) - stmt = FunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment) @@ -51,7 +48,6 @@ module Python | Expr(expr value) | Pass | Break | Continue - -- XXX Jython will be different -- col_offset is the byte offset in the utf8 string the parser uses attributes (int lineno, int col_offset, int? end_lineno, int? end_col_offset) |