You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks. I went down a rabbit hole yesterday trying to figure out where lhs gets initialized as an Expression::Name. I figure that's probably not that important, but now I'm curious as I can't seem to follow the stack trace. It must go something like:
EDIT: Nevermind. I printed a backtrace so now I see how this works. The parser "cascades" down through various checks, eventually landing on parse_identifier.
I suppose it might actually be important if we don't track tokens by offset, or some other way to look up a token at a particular index. I'm assuming we don't want to add a surrounded_by_parens or similar field to the Name struct?
Annotated assignment statements have a flag called simple. This is hardcoded but should be assigned based on the following spec:
https://docs.python.org/3/library/ast.html#ast.AnnAssign
The text was updated successfully, but these errors were encountered: