// Code generated by "stringer -linecomment -type=Primitive"; DO NOT EDIT.

package primitives

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[Number-15]
	_ = x[String-12]
	_ = x[Boolean-16]
	_ = x[Array-11]
	_ = x[Object-10]
	_ = x[Null-17]
	_ = x[Bareword-0]
	_ = x[Other - -1]
	_ = x[Function - -2]
}

const (
	_Primitive_name_0 = "functions and sub-shellsotherbareword"
	_Primitive_name_1 = "objectarraystring"
	_Primitive_name_2 = "numberbooleannull"
)

var (
	_Primitive_index_0 = [...]uint8{0, 24, 29, 37}
	_Primitive_index_1 = [...]uint8{0, 6, 11, 17}
	_Primitive_index_2 = [...]uint8{0, 6, 13, 17}
)

func (i Primitive) String() string {
	switch {
	case -2 <= i && i <= 0:
		i -= -2
		return _Primitive_name_0[_Primitive_index_0[i]:_Primitive_index_0[i+1]]
	case 10 <= i && i <= 12:
		i -= 10
		return _Primitive_name_1[_Primitive_index_1[i]:_Primitive_index_1[i+1]]
	case 15 <= i && i <= 17:
		i -= 15
		return _Primitive_name_2[_Primitive_index_2[i]:_Primitive_index_2[i+1]]
	default:
		return "Primitive(" + strconv.FormatInt(int64(i), 10) + ")"
	}
}
