mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +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
|
|
@ -156,6 +156,8 @@ class ASDLParser(spark.GenericParser, object):
|
|||
if id.value != "attributes":
|
||||
raise ASDLSyntaxError(id.lineno,
|
||||
msg="expected attributes, found %s" % id)
|
||||
if attributes:
|
||||
attributes.reverse()
|
||||
return Sum(sum, attributes)
|
||||
|
||||
def p_product(self, (_0, fields, _1)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue