(self, node_or_none, desc)
Asserts that a node parsed, or raises a ParserError.

        Args:
          node_or_none: The result of a parsing function.

        Returns:
          The node, if not None.

        Raises:
          ParserError: The node is None.
Asserts that a node parsed, or raises a ParserError.
Asserts that a node parsed or raises a ParserError .
def _assert(self, node_or_none, desc):
        """Asserts that a node parsed, or raises a ParserError.

        Args:
          node_or_none: The result of a parsing function.

        Returns:
          The node, if not None.

        Raises:
          ParserError: The node is None.
        """
        if node_or_none is not None:
            return node_or_none
        raise ParserError(desc, token=self._peek())
def _assert ( self , node_or_none , desc ) : if node_or_none is not None : return node_or_none raise ParserError ( desc , token = self . _peek ( ) )