[Libre-soc-bugs] [Bug 1094] insndb instruction database visitor-walker is needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Jun 23 09:42:32 BST 2023


--- Comment #235 from Dmitry Selyutin <ghostmansd at gmail.com> ---
Yes, this works! I'm waiting for CI to make sure nothing is broken, but with
the relevant changes in mdis, I can increment index after the yield. The code
therefore becomes:

    def traverse(root, visitor, walker):
        with visitor(root):
            for (node, *_) in walker(root):
                traverse(root=node, visitor=visitor, walker=walker)

    traverse(root=root, visitor=visitor, walker=Walker())

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list