From 712de1c63d9db97c81af68cd0dc4372c53d2e57a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 15 Sep 2020 18:05:35 +0200 Subject: vendor/github.com/golangci/golangci-lint: update to v1.31 --- .../quasilyte/regex/syntax/operation_string.go | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 vendor/github.com/quasilyte/regex/syntax/operation_string.go (limited to 'vendor/github.com/quasilyte/regex/syntax/operation_string.go') 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]] +} -- cgit mrf-deployment