Add `name` field in Identifier

master
Yury Kurlykov 2020-04-28 11:20:15 +10:00
parent 6372a043a2
commit 42b4e40d9e
Signed by: t1meshift
GPG Key ID: B133F3167ABF94D8
1 changed files with 1 additions and 0 deletions

View File

@ -1099,3 +1099,4 @@ class Identifier(Expression, Pattern):
def __init__(self, loc: Optional[SourceLocation], name: str):
super().__init__("Identifier", loc)
self.name = name
self._fields.update({"name": self.name})