Posted 3 years ago
by Tobias Lingemann
-
Software Devolpment Engineer,
Vector Informatik GmbH
Version: 22.1.1
Platform: .NET 4.8
Environment: Windows 10 (64-bit)
![Avatar](https://secure.gravatar.com/avatar/d1301a91bf1f2fa39d156fbf57ff2b60.jpg?s=64&d=identicon&r=g)
Hi,
I am parsing python files using your syntax tree. I found a enum declaration where multiple names are assigned to one value in a single line.
from enum import IntEnum
class MyEnum(IntEnum):
A = B = 1
def MyFunction(param : MyEnum):
print(repr(param))
In the syntax tree the left expression "A = B" is a TupleExpression. However the items collection is empty, so I have no way to get any of both names.
Best regards, Tobias Lingemann.