aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/quasilyte/regex/syntax/operation_string.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-09-15 18:05:35 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-09-15 19:34:30 +0200
commit712de1c63d9db97c81af68cd0dc4372c53d2e57a (patch)
treeae1761fec52c3ae4ddd003a4130ddbda8d0a2d69 /vendor/github.com/quasilyte/regex/syntax/operation_string.go
parent298a69c38dd5c8a9bbd7a022e88f4ddbcf885e16 (diff)
vendor/github.com/golangci/golangci-lint: update to v1.31
Diffstat (limited to 'vendor/github.com/quasilyte/regex/syntax/operation_string.go')
-rw-r--r--vendor/github.com/quasilyte/regex/syntax/operation_string.go59
1 files changed, 59 insertions, 0 deletions
diff --git a/vendor/github.com/quasilyte/regex/syntax/operation_string.go b/vendor/github.com/quasilyte/regex/syntax/operation_string.go
new file mode 100644
index 000000000..b78e9ac5d
--- /dev/null
+++ b/vendor/github.com/quasilyte/regex/syntax/operation_string.go
@@ -0,0 +1,59 @@
+// Code generated by "stringer -type=Operation -trimprefix=Op"; DO NOT EDIT.
+
+package syntax
+
+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[OpNone-0]
+ _ = x[OpConcat-1]
+ _ = x[OpDot-2]
+ _ = x[OpAlt-3]
+ _ = x[OpStar-4]
+ _ = x[OpPlus-5]
+ _ = x[OpQuestion-6]
+ _ = x[OpNonGreedy-7]
+ _ = x[OpPossessive-8]
+ _ = x[OpCaret-9]
+ _ = x[OpDollar-10]
+ _ = x[OpLiteral-11]
+ _ = x[OpChar-12]
+ _ = x[OpString-13]
+ _ = x[OpQuote-14]
+ _ = x[OpEscapeChar-15]
+ _ = x[OpEscapeMeta-16]
+ _ = x[OpEscapeOctal-17]
+ _ = x[OpEscapeHex-18]
+ _ = x[OpEscapeUni-19]
+ _ = x[OpCharClass-20]
+ _ = x[OpNegCharClass-21]
+ _ = x[OpCharRange-22]
+ _ = x[OpPosixClass-23]
+ _ = x[OpRepeat-24]
+ _ = x[OpCapture-25]
+ _ = x[OpNamedCapture-26]
+ _ = x[OpGroup-27]
+ _ = x[OpGroupWithFlags-28]
+ _ = x[OpAtomicGroup-29]
+ _ = x[OpPositiveLookahead-30]
+ _ = x[OpNegativeLookahead-31]
+ _ = x[OpPositiveLookbehind-32]
+ _ = x[OpNegativeLookbehind-33]
+ _ = x[OpFlagOnlyGroup-34]
+ _ = x[OpComment-35]
+ _ = x[OpNone2-36]
+}
+
+const _Operation_name = "NoneConcatDotAltStarPlusQuestionNonGreedyPossessiveCaretDollarLiteralCharStringQuoteEscapeCharEscapeMetaEscapeOctalEscapeHexEscapeUniCharClassNegCharClassCharRangePosixClassRepeatCaptureNamedCaptureGroupGroupWithFlagsAtomicGroupPositiveLookaheadNegativeLookaheadPositiveLookbehindNegativeLookbehindFlagOnlyGroupCommentNone2"
+
+var _Operation_index = [...]uint16{0, 4, 10, 13, 16, 20, 24, 32, 41, 51, 56, 62, 69, 73, 79, 84, 94, 104, 115, 124, 133, 142, 154, 163, 173, 179, 186, 198, 203, 217, 228, 245, 262, 280, 298, 311, 318, 323}
+
+func (i Operation) String() string {
+ if i >= Operation(len(_Operation_index)-1) {
+ return "Operation(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _Operation_name[_Operation_index[i]:_Operation_index[i+1]]
+}