(self)
Generate the tokens for this AST node and all child nodes.

        Yields:
            Tokens.
Generate the tokens for this AST node and all child nodes.
Generate the tokens for this AST node and all child nodes .
def tokens(self):
        """Generate the tokens for this AST node and all child nodes.

        Yields:
            Tokens.
        """
        for token_group in self._token_groups:
            if type(token_group) == list:
                for t in token_group:
                    yield t
                continue
            (fieldspec, tokens) = token_group
            for t in tokens:
                yield t
            if type(fieldspec) == str:
                tokens = getattr(self, fieldspec).tokens
                for t in tokens:
                    yield t
            elif len(fieldspec) == 2:
                tokens = getattr(self, fieldspec[0])[fieldspec[1]].tokens
                for t in tokens:
                    yield t
            else:
                tokens = getattr(self, fieldspec[0])[fieldspec[1]][fieldspec[2]].tokens  # noqa: E501
                for t in tokens:
                    yield t
def tokens ( self ) : for token_group in self . _token_groups : if type ( token_group ) == list : for t in token_group : yield t continue ( fieldspec , tokens ) = token_group for t in tokens : yield t if type ( fieldspec ) == str : tokens = getattr ( self , fieldspec ) . tokens for t in tokens : yield t elif len ( fieldspec ) == 2 : tokens = getattr ( self , fieldspec [ 0 ] ) [ fieldspec [ 1 ] ] . tokens for t in tokens : yield t else : tokens = getattr ( self , fieldspec [ 0 ] ) [ fieldspec [ 1 ] ] [ fieldspec [ 2 ] ] . tokens # noqa: E501 for t in tokens : yield t