From a5c83525bd12ef63dbcaed9fef7e77ab9cdecdf5 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Fri, 16 Feb 2024 12:04:58 +0000 Subject: go generate ./... --- json/tokentype_string.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'json') 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{ -- cgit v1.2.3