diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-11-06 16:01:48 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-11-06 16:01:48 (GMT) |
commit | c106c68aeb5814583a622587e63504f0c93c5140 (patch) | |
tree | b026a25fd175002dfa1e0cfba6168f7ccfa95b9f /Include/Python-ast.h | |
parent | 0c009bf3b5c7fdcd2044acb3e8802d5db4bf19d7 (diff) | |
download | cpython-c106c68aeb5814583a622587e63504f0c93c5140.zip cpython-c106c68aeb5814583a622587e63504f0c93c5140.tar.gz cpython-c106c68aeb5814583a622587e63504f0c93c5140.tar.bz2 |
Issue #25555: Fix parser and AST: fill lineno and col_offset of "arg" node when
compiling AST from Python objects.
Diffstat (limited to 'Include/Python-ast.h')
-rw-r--r-- | Include/Python-ast.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/Python-ast.h b/Include/Python-ast.h index ea6679c..175e380 100644 --- a/Include/Python-ast.h +++ b/Include/Python-ast.h @@ -602,8 +602,9 @@ excepthandler_ty _Py_ExceptHandler(expr_ty type, identifier name, asdl_seq * arguments_ty _Py_arguments(asdl_seq * args, arg_ty vararg, asdl_seq * kwonlyargs, asdl_seq * kw_defaults, arg_ty kwarg, asdl_seq * defaults, PyArena *arena); -#define arg(a0, a1, a2) _Py_arg(a0, a1, a2) -arg_ty _Py_arg(identifier arg, expr_ty annotation, PyArena *arena); +#define arg(a0, a1, a2, a3, a4) _Py_arg(a0, a1, a2, a3, a4) +arg_ty _Py_arg(identifier arg, expr_ty annotation, int lineno, int col_offset, + PyArena *arena); #define keyword(a0, a1, a2) _Py_keyword(a0, a1, a2) keyword_ty _Py_keyword(identifier arg, expr_ty value, PyArena *arena); #define alias(a0, a1, a2) _Py_alias(a0, a1, a2) |