parameters: (self, location, field_name)
docstring: Add an error about using a non-struct or BSON object for a doc sequence.
docstring_summary: Add an error about using a non-struct or BSON object for a doc sequence.
docstring_tokens: Add an error about using a non - struct or BSON object for a doc sequence .
function: def add_bad_non_object_as_doc_sequence_error(self, location, field_name):
          # type: (common.SourceLocation, str) -> None
          """Add an error about using a non-struct or BSON object for a doc sequence."""
          # pylint: disable=invalid-name
          self._add_error(location, ERROR_ID_NO_DOC_SEQUENCE_FOR_NON_OBJECT,
                          ("Field '%s' cannot be used as a Command Document Sequence"
                           " type since it is not a BSON object or struct.") % (field_name))
function_tokens: def add_bad_non_object_as_doc_sequence_error ( self , location , field_name ) : # type: (common.SourceLocation, str) -> None # pylint: disable=invalid-name self . _add_error ( location , ERROR_ID_NO_DOC_SEQUENCE_FOR_NON_OBJECT , ( "Field '%s' cannot be used as a Command Document Sequence" " type since it is not a BSON object or struct." ) % ( field_name ) )