We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
astToDict
Since we use slotted classes for ASTs, we need a way to convert an AST Node to a Dict.
Node
I.e. Name(value='test') Should get converted to {"kind": "Name", "value": "test"}.
Name(value='test')
{"kind": "Name", "value": "test"}
It should convert recursively.