Debian Codegraph @

parser/pageparser/itemtype_string.go

raw
1 // Code generated by "stringer -type ItemType"; DO NOT EDIT.
2
3 package pageparser
4
5 import "strconv"
6
7 func _() {
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[tError-0]
12 _ = x[tEOF-1]
13 _ = x[TypeLeadSummaryDivider-2]
14 _ = x[TypeFrontMatterYAML-3]
15 _ = x[TypeFrontMatterTOML-4]
16 _ = x[TypeFrontMatterJSON-5]
17 _ = x[TypeFrontMatterORG-6]
18 _ = x[TypeIgnore-7]
19 _ = x[tLeftDelimScNoMarkup-8]
20 _ = x[tRightDelimScNoMarkup-9]
21 _ = x[tLeftDelimScWithMarkup-10]
22 _ = x[tRightDelimScWithMarkup-11]
23 _ = x[tScClose-12]
24 _ = x[tScName-13]
25 _ = x[tScNameInline-14]
26 _ = x[tScParam-15]
27 _ = x[tScParamVal-16]
28 _ = x[tIndentation-17]
29 _ = x[tText-18]
30 _ = x[tKeywordMarker-19]
31 }
32
33 const _ItemType_name = "tErrortEOFTypeLeadSummaryDividerTypeFrontMatterYAMLTypeFrontMatterTOMLTypeFrontMatterJSONTypeFrontMatterORGTypeIgnoretLeftDelimScNoMarkuptRightDelimScNoMarkuptLeftDelimScWithMarkuptRightDelimScWithMarkuptScClosetScNametScNameInlinetScParamtScParamValtIndentationtTexttKeywordMarker"
34
35 var _ItemType_index = [...]uint16{0, 6, 10, 32, 51, 70, 89, 107, 117, 137, 158, 180, 203, 211, 218, 231, 239, 250, 262, 267, 281}
36
37 func (i ItemType) String() string {
38 if i < 0 || i >= ItemType(len(_ItemType_index)-1) {
39 return "ItemType(" + strconv.FormatInt(int64(i), 10) + ")"
40 }
41 return _ItemType_name[_ItemType_index[i]:_ItemType_index[i+1]]
42 }