aboutsummaryrefslogtreecommitdiff
path: root/internal/cpe/tokentype_string.go
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-02 04:08:55 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-02 04:08:55 -0500
commitb6496c2d20904e665116133a9e9bf9ae6e3b45b8 (patch)
tree72ca645269e545e494e1d6d91145134584abc673 /internal/cpe/tokentype_string.go
parent1b9eb2eddf322560c37efa2ef2eb63d5ab661be8 (diff)
downloadcvez-b6496c2d20904e665116133a9e9bf9ae6e3b45b8.tar.bz2
cvez-b6496c2d20904e665116133a9e9bf9ae6e3b45b8.zip
add internal/cpe
Diffstat (limited to 'internal/cpe/tokentype_string.go')
-rw-r--r--internal/cpe/tokentype_string.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/internal/cpe/tokentype_string.go b/internal/cpe/tokentype_string.go
new file mode 100644
index 0000000..7b53758
--- /dev/null
+++ b/internal/cpe/tokentype_string.go
@@ -0,0 +1,25 @@
+// Code generated by "stringer -linecomment -type=tokenType"; DO NOT EDIT.
+
+package cpe
+
+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[anyToken-0]
+ _ = x[naToken-1]
+ _ = x[valToken-2]
+}
+
+const _tokenType_name = "anynaval"
+
+var _tokenType_index = [...]uint8{0, 3, 5, 8}
+
+func (i tokenType) String() string {
+ if i >= tokenType(len(_tokenType_index)-1) {
+ return "tokenType(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _tokenType_name[_tokenType_index[i]:_tokenType_index[i+1]]
+}