parameters: (self, command_name: str, file: str,
                                                  field_name: Optional[str],
                                                  is_command_parameter: bool)
docstring: Add an error about the command parameter or type being invalid.
docstring_summary: Add an error about the command parameter or type being invalid.
docstring_tokens: Add an error about the command parameter or type being invalid .
function: def add_command_or_param_type_invalid_error(self, command_name: str, file: str,
                                                  field_name: Optional[str],
                                                  is_command_parameter: bool) -> None:
          """Add an error about the command parameter or type being invalid."""
          if is_command_parameter:
              self._add_error(
                  ERROR_ID_COMMAND_PARAMETER_TYPE_INVALID, command_name,
                  "The '%s' command has a field or sub-field '%s' that has an invalid type" %
                  (command_name, field_name), file)
          else:
              self._add_error(
                  ERROR_ID_COMMAND_TYPE_INVALID, command_name,
                  "'%s' has an invalid type or has a sub-struct with an invalid type" %
                  (command_name), file)
function_tokens: def add_command_or_param_type_invalid_error ( self , command_name : str , file : str , field_name : Optional [ str ] , is_command_parameter : bool ) -> None : if is_command_parameter : self . _add_error ( ERROR_ID_COMMAND_PARAMETER_TYPE_INVALID , command_name , "The '%s' command has a field or sub-field '%s' that has an invalid type" % ( command_name , field_name ) , file ) else : self . _add_error ( ERROR_ID_COMMAND_TYPE_INVALID , command_name , "'%s' has an invalid type or has a sub-struct with an invalid type" % ( command_name ) , file )