aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/hcl2/hcl/json/tokentype_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/hashicorp/hcl2/hcl/json/tokentype_string.go')
-rw-r--r--vendor/github.com/hashicorp/hcl2/hcl/json/tokentype_string.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/hcl2/hcl/json/tokentype_string.go b/vendor/github.com/hashicorp/hcl2/hcl/json/tokentype_string.go
new file mode 100644
index 0000000..bbcce5b
--- /dev/null
+++ b/vendor/github.com/hashicorp/hcl2/hcl/json/tokentype_string.go
@@ -0,0 +1,29 @@
1// Code generated by "stringer -type tokenType scanner.go"; DO NOT EDIT.
2
3package json
4
5import "strconv"
6
7const _tokenType_name = "tokenInvalidtokenCommatokenColontokenEqualstokenKeywordtokenNumbertokenStringtokenBrackOtokenBrackCtokenBraceOtokenBraceCtokenEOF"
8
9var _tokenType_map = map[tokenType]string{
10 0: _tokenType_name[0:12],
11 44: _tokenType_name[12:22],
12 58: _tokenType_name[22:32],
13 61: _tokenType_name[32:43],
14 75: _tokenType_name[43:55],
15 78: _tokenType_name[55:66],
16 83: _tokenType_name[66:77],
17 91: _tokenType_name[77:88],
18 93: _tokenType_name[88:99],
19 123: _tokenType_name[99:110],
20 125: _tokenType_name[110:121],
21 9220: _tokenType_name[121:129],
22}
23
24func (i tokenType) String() string {
25 if str, ok := _tokenType_map[i]; ok {
26 return str
27 }
28 return "tokenType(" + strconv.FormatInt(int64(i), 10) + ")"
29}