parameters: (self, token)
return_statement: return True
docstring: Returns whether a space should appear before the given operator token.
  
      Args:
        token: The operator token.
  
      Returns:
        Whether there should be a space before the token.
docstring_summary: Returns whether a space should appear before the given operator token.
docstring_tokens: Returns whether a space should appear before the given operator token .
function: def _ExpectSpaceBeforeOperator(self, token):
      """Returns whether a space should appear before the given operator token.
  
      Args:
        token: The operator token.
  
      Returns:
        Whether there should be a space before the token.
      """
      if token.string == ',' or token.metadata.IsUnaryPostOperator():
        return False
  
      if tokenutil.IsDot(token):
        return False
  
      # Colons should appear in labels, object literals, the case of a switch
      # statement, and ternary operator. Only want a space in the case of the
      # ternary operator.
      if self._IsLabel(token):
        return False
  
      if token.metadata.IsUnaryOperator() and token.IsFirstInLine():
        return False
  
      return True
function_tokens: def _ExpectSpaceBeforeOperator ( self , token ) : if token . string == ',' or token . metadata . IsUnaryPostOperator ( ) : return False if tokenutil . IsDot ( token ) : return False # Colons should appear in labels, object literals, the case of a switch # statement, and ternary operator. Only want a space in the case of the # ternary operator. if self . _IsLabel ( token ) : return False if token . metadata . IsUnaryOperator ( ) and token . IsFirstInLine ( ) : return False return True