def METHOD_NAME(self,
                name: str,
                info: Optional[QAPISourceInfo],
                ifcond: QAPISchemaIfCond,
                features: List[QAPISchemaFeature],
                arg_type: Optional[QAPISchemaObjectType],
                boxed: bool) -> None:
    with ifcontext(ifcond, self._genh, self._genc):
        self._genh.add(gen_event_send_decl(name, arg_type, boxed))
        self._genc.add(gen_event_send(name, arg_type, features, boxed,
                                      self._event_enum_name,
                                      self._event_emit_name))
    # Note: we generate the enum member regardless of @ifcond, to
    # keep the enumeration usable in target-independent code.
    self._event_enum_members.append(QAPISchemaEnumMember(name, None))