mirror of
https://github.com/python/cpython.git
synced 2025-10-21 06:02:21 +00:00
Patch #1440601: Add col_offset attribute to AST nodes.
This commit is contained in:
parent
3ffa59b137
commit
49c5da1d88
16 changed files with 382 additions and 244 deletions
|
@ -3635,7 +3635,7 @@ compiler_augassign(struct compiler *c, stmt_ty s)
|
|||
switch (e->kind) {
|
||||
case Attribute_kind:
|
||||
auge = Attribute(e->v.Attribute.value, e->v.Attribute.attr,
|
||||
AugLoad, e->lineno, c->c_arena);
|
||||
AugLoad, e->lineno, e->col_offset, c->c_arena);
|
||||
if (auge == NULL)
|
||||
return 0;
|
||||
VISIT(c, expr, auge);
|
||||
|
@ -3646,7 +3646,7 @@ compiler_augassign(struct compiler *c, stmt_ty s)
|
|||
break;
|
||||
case Subscript_kind:
|
||||
auge = Subscript(e->v.Subscript.value, e->v.Subscript.slice,
|
||||
AugLoad, e->lineno, c->c_arena);
|
||||
AugLoad, e->lineno, e->col_offset, c->c_arena);
|
||||
if (auge == NULL)
|
||||
return 0;
|
||||
VISIT(c, expr, auge);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue