src/license_expression/_pyahocorasick.py
def walk(node, tokens):
            """
            Walk the trie, depth first.
            """
            tokens = [t for t in tokens + [node.token] if t]
            if node.output is not nil:
                items.append((node.output[0], node.output[1],))

            for child in node.children.values():
                if child is not node:
                    walk(child, tokens)

            Walk the trie, depth first.
            
Walk the trie, depth first.
Walk the trie depth first .
def walk(node, tokens):
            tokens = [t for t in tokens + [node.token] if t]
            if node.output is not nil:
                items.append((node.output[0], node.output[1],))
            for child in node.children.values():
                if child is not node:
                    walk(child, tokens)
def walk ( node , tokens ) : tokens = [ t for t in tokens + [ node . token ] if t ] if node . output is not nil : items . append ( ( node . output [ 0 ] , node . output [ 1 ] , ) ) for child in node . children . values ( ) : if child is not node : walk ( child , tokens )
Walk the trie, depth first.
Walk the trie depth first .
"""
            Walk the trie, depth first.
            """
node
tokens