parameters: (self, errorId, position=None, **kwargs)
docstring: Emit an error.
  
          :param errorId: The id of the error.
          :param position: The position of the error. Defaults to the current parser position.
          :param kwargs: Formatting arguments for the error message.
docstring_summary: Emit an error.
docstring_tokens: Emit an error .
function: def error(self, errorId, position=None, **kwargs):
          """
          Emit an error.
  
          :param errorId: The id of the error.
          :param position: The position of the error. Defaults to the current parser position.
          :param kwargs: Formatting arguments for the error message.
          """
          if position is None:
              position = self._locator.getLineNumber(), self._locator.getColumnNumber()
          self._logger.error(errorId, position, **kwargs)
function_tokens: def error ( self , errorId , position = None , * * kwargs ) : if position is None : position = self . _locator . getLineNumber ( ) , self . _locator . getColumnNumber ( ) self . _logger . error ( errorId , position , * * kwargs )