(self)
return scan(self.children)
Returns a generator of `return_stmt`.
Returns a generator of `return_stmt`.
Returns a generator of return_stmt .
def iter_return_stmts(self):
        """
        Returns a generator of `return_stmt`.
        """
        def scan(children):
            for element in children:
                if element.type == 'return_stmt' \
                        or element.type == 'keyword' and element.value == 'return':
                    yield element
                if element.type in _RETURN_STMT_CONTAINERS:
                    for e in scan(element.children):
                        yield e

        return scan(self.children)
def iter_return_stmts ( self ) : def scan ( children ) : for element in children : if element . type == 'return_stmt' or element . type == 'keyword' and element . value == 'return' : yield element if element . type in _RETURN_STMT_CONTAINERS : for e in scan ( element . children ) : yield e return scan ( self . children )