summaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
authorRadek Simko <radek.simko@gmail.com>2024-02-16 12:04:58 +0000
committerRadek Simko <radek.simko@gmail.com>2024-02-16 12:20:49 +0000
commita5c83525bd12ef63dbcaed9fef7e77ab9cdecdf5 (patch)
treea818dcc28b109d7f3bffb0a667494faeb9122b11 /json
parent2f101e25ef30214dda9bf95fa84a3f68123cf717 (diff)
go generate ./...
Diffstat (limited to 'json')
-rw-r--r--json/tokentype_string.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/json/tokentype_string.go b/json/tokentype_string.go
index bbcce5b..82bd740 100644
--- a/json/tokentype_string.go
+++ b/json/tokentype_string.go
@@ -4,6 +4,24 @@ package json
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[tokenBraceO-123]
+ _ = x[tokenBraceC-125]
+ _ = x[tokenBrackO-91]
+ _ = x[tokenBrackC-93]
+ _ = x[tokenComma-44]
+ _ = x[tokenColon-58]
+ _ = x[tokenKeyword-75]
+ _ = x[tokenString-83]
+ _ = x[tokenNumber-78]
+ _ = x[tokenEOF-9220]
+ _ = x[tokenInvalid-0]
+ _ = x[tokenEquals-61]
+}
+
const _tokenType_name = "tokenInvalidtokenCommatokenColontokenEqualstokenKeywordtokenNumbertokenStringtokenBrackOtokenBrackCtokenBraceOtokenBraceCtokenEOF"
var _tokenType_map = map[tokenType]string{