// Code generated by "stringer -type MetadataKind -linecomment -output metadata_string.go"; DO NOT EDIT.

package swift

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[ClassMetadataKind-0]
	_ = x[StructMetadataKind-512]
	_ = x[EnumMetadataKind-513]
	_ = x[OptionalMetadataKind-514]
	_ = x[ForeignClassMetadataKind-515]
	_ = x[ForeignReferenceTypeMetadataKind-516]
	_ = x[OpaqueMetadataKind-768]
	_ = x[TupleMetadataKind-769]
	_ = x[FunctionMetadataKind-770]
	_ = x[ExistentialMetadataKind-771]
	_ = x[MetatypeMetadataKind-772]
	_ = x[ObjCClassWrapperMetadataKind-773]
	_ = x[ExistentialMetatypeMetadataKind-774]
	_ = x[ExtendedExistentialMetadataKind-775]
	_ = x[HeapLocalVariableMetadataKind-1024]
	_ = x[HeapGenericLocalVariableMetadataKind-1280]
	_ = x[ErrorObjectMetadataKind-1281]
	_ = x[TaskMetadataKind-1282]
	_ = x[JobMetadataKind-1283]
}

const (
	_MetadataKind_name_0 = "class"
	_MetadataKind_name_1 = "structenumoptionalforeign classforeign reference type"
	_MetadataKind_name_2 = "opaquetuplefunctionexistentialmetatypeobjc class wrapperexistential metatypeextended existential type"
	_MetadataKind_name_3 = "heap local variable"
	_MetadataKind_name_4 = "heap generic local variableerror objecttaskjob"
)

var (
	_MetadataKind_index_1 = [...]uint8{0, 6, 10, 18, 31, 53}
	_MetadataKind_index_2 = [...]uint8{0, 6, 11, 19, 30, 38, 56, 76, 101}
	_MetadataKind_index_4 = [...]uint8{0, 27, 39, 43, 46}
)

func (i MetadataKind) String() string {
	switch {
	case i == 0:
		return _MetadataKind_name_0
	case 512 <= i && i <= 516:
		i -= 512
		return _MetadataKind_name_1[_MetadataKind_index_1[i]:_MetadataKind_index_1[i+1]]
	case 768 <= i && i <= 775:
		i -= 768
		return _MetadataKind_name_2[_MetadataKind_index_2[i]:_MetadataKind_index_2[i+1]]
	case i == 1024:
		return _MetadataKind_name_3
	case 1280 <= i && i <= 1283:
		i -= 1280
		return _MetadataKind_name_4[_MetadataKind_index_4[i]:_MetadataKind_index_4[i+1]]
	default:
		return "MetadataKind(" + strconv.FormatInt(int64(i), 10) + ")"
	}
}
