def child_parsers(self): """Iterate over all the code objects nested within this one. The iteration includes `self` as its first value. """ children = CodeObjects(self.code) return (ByteParser(self.text, code=c) for c in children)
def child_parsers(self): children = CodeObjects(self.code) return [ByteParser(code=c, text=self.text) for c in children]