[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:08:37 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1094

--- Comment #233 from Dmitry Selyutin <ghostmansd at gmail.com> ---
(In reply to Dmitry Selyutin from comment #232)
>
> Frankly I'm not sure how to circumvent this.
> 

Hm. I think if we only enter one-level we should resolve it:

def visit(root, visitor, walker):
    for node in walker(root):
        with visitor(node):
            return visit(node, visitor, walker)

Prerequisite is that walker doesn't go deeper than 1 level.

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


More information about the libre-soc-bugs mailing list