Maybe related: Sometimes, the tree_matcher outputs normally illegal constructs of the shape Tree('expansion',[Tree('expansion',[...])]) or Tree('<origin>', [Tree('<alias>',[...])]) This can be dealt with, but is kinda annoying. I don't have a simple example. Here is where I deal with it.
Describe the bug
Sometimes (e.g. not reliable/random chance), the
TreeMatcher
(and therefore theReconstructor
applies trees like this:as if they were
To Reproduce
This script sometimes wrongly produces
(I came across this while working on ast_generator)
Maybe related: Sometimes, the tree_matcher outputs normally illegal constructs of the shape
Tree('expansion',[Tree('expansion',[...])])
orTree('<origin>', [Tree('<alias>',[...])])
This can be dealt with, but is kinda annoying. I don't have a simple example. Here is where I deal with it.