-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtagkind_string.go
72 lines (66 loc) · 2.07 KB
/
tagkind_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Code generated by "stringer -type=tagkind -trimprefix=tag"; DO NOT EDIT.
package contraption
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[tagCompound-0]
_ = x[tagCircle-1]
_ = x[tagRect-2]
_ = x[tagRoundrect-3]
_ = x[tagVoid-4]
_ = x[tagEquation-5]
_ = x[tagText-6]
_ = x[tagCanvas-7]
_ = x[tagVectorText-8]
_ = x[tagTopDownText-9]
_ = x[tagBottomUpText-10]
_ = x[tagSequence-11]
_ = x[tagIllustration-12]
_ = x[tagHalign - -1]
_ = x[tagValign - -2]
_ = x[tagFill - -3]
_ = x[tagStroke - -4]
_ = x[tagStrokewidth - -5]
_ = x[tagIdentity - -6]
_ = x[tagCond - -7]
_ = x[tagCondfill - -8]
_ = x[tagCondstroke - -9]
_ = x[tagBetween - -10]
_ = x[tagScroll - -11]
_ = x[tagSource - -12]
_ = x[tagSink - -13]
_ = x[tagHscroll - -14]
_ = x[tagVscroll - -15]
_ = x[tagPosttransform - -101]
_ = x[tagTransform - -102]
_ = x[tagCrop - -103]
_ = x[tagHshrink - -104]
_ = x[tagVshrink - -105]
_ = x[tagLimit - -106]
_ = x[tagVfollow - -107]
_ = x[tagHfollow - -108]
_ = x[tagNoround - -109]
_ = x[tagRound - -110]
}
const (
_tagkind_name_0 = "DecimateDontDecimateHfollowVfollowLimitVshrinkHshrinkCropTransformPosttransform"
_tagkind_name_1 = "VscrollHscrollSinkSourceScrollBetweenCondstrokeCondfillCondIdentityStrokewidthStrokeFillValignHalignCompoundCircleRectRoundrectVoidEquationTextCanvasVectorTextTopDownTextBottomUpTextSequenceIllustration"
)
var (
_tagkind_index_0 = [...]uint8{0, 8, 20, 27, 34, 39, 46, 53, 57, 66, 79}
_tagkind_index_1 = [...]uint8{0, 7, 14, 18, 24, 30, 37, 47, 55, 59, 67, 78, 84, 88, 94, 100, 108, 114, 118, 127, 131, 139, 143, 149, 159, 170, 182, 190, 202}
)
func (i tagkind) String() string {
switch {
case -110 <= i && i <= -101:
i -= -110
return _tagkind_name_0[_tagkind_index_0[i]:_tagkind_index_0[i+1]]
case -15 <= i && i <= 12:
i -= -15
return _tagkind_name_1[_tagkind_index_1[i]:_tagkind_index_1[i+1]]
default:
return "tagkind(" + strconv.FormatInt(int64(i), 10) + ")"
}
}