quotestate_string.go

 1// Code generated by "stringer -type=quoteState"; DO NOT EDIT.
 2
 3package syntax
 4
 5import "strconv"
 6
 7func _() {
 8	// An "invalid array index" compiler error signifies that the constant values have changed.
 9	// Re-run the stringer command to generate them again.
10	var x [1]struct{}
11	_ = x[noState-1]
12	_ = x[subCmd-2]
13	_ = x[subCmdBckquo-4]
14	_ = x[dblQuotes-8]
15	_ = x[hdocWord-16]
16	_ = x[hdocBody-32]
17	_ = x[hdocBodyTabs-64]
18	_ = x[arithmExpr-128]
19	_ = x[arithmExprLet-256]
20	_ = x[arithmExprCmd-512]
21	_ = x[arithmExprBrack-1024]
22	_ = x[testExpr-2048]
23	_ = x[testExprRegexp-4096]
24	_ = x[switchCase-8192]
25	_ = x[paramExpName-16384]
26	_ = x[paramExpSlice-32768]
27	_ = x[paramExpRepl-65536]
28	_ = x[paramExpExp-131072]
29	_ = x[arrayElems-262144]
30}
31
32const _quoteState_name = "noStatesubCmdsubCmdBckquodblQuoteshdocWordhdocBodyhdocBodyTabsarithmExprarithmExprLetarithmExprCmdarithmExprBracktestExprtestExprRegexpswitchCaseparamExpNameparamExpSliceparamExpReplparamExpExparrayElems"
33
34var _quoteState_map = map[quoteState]string{
35	1:      _quoteState_name[0:7],
36	2:      _quoteState_name[7:13],
37	4:      _quoteState_name[13:25],
38	8:      _quoteState_name[25:34],
39	16:     _quoteState_name[34:42],
40	32:     _quoteState_name[42:50],
41	64:     _quoteState_name[50:62],
42	128:    _quoteState_name[62:72],
43	256:    _quoteState_name[72:85],
44	512:    _quoteState_name[85:98],
45	1024:   _quoteState_name[98:113],
46	2048:   _quoteState_name[113:121],
47	4096:   _quoteState_name[121:135],
48	8192:   _quoteState_name[135:145],
49	16384:  _quoteState_name[145:157],
50	32768:  _quoteState_name[157:170],
51	65536:  _quoteState_name[170:182],
52	131072: _quoteState_name[182:193],
53	262144: _quoteState_name[193:203],
54}
55
56func (i quoteState) String() string {
57	if str, ok := _quoteState_map[i]; ok {
58		return str
59	}
60	return "quoteState(" + strconv.FormatInt(int64(i), 10) + ")"
61}