libgo: update to Go 1.11
[official-gcc.git] / libgo / go / regexp / syntax / op_string.go
blob3952b2bdd5f576aca25e1f9321014ed274a97293
1 // Code generated by "stringer -type Op -trimprefix Op"; DO NOT EDIT.
3 package syntax
5 import "strconv"
7 const (
8 _Op_name_0 = "NoMatchEmptyMatchLiteralCharClassAnyCharNotNLAnyCharBeginLineEndLineBeginTextEndTextWordBoundaryNoWordBoundaryCaptureStarPlusQuestRepeatConcatAlternate"
9 _Op_name_1 = "opPseudo"
12 var (
13 _Op_index_0 = [...]uint8{0, 7, 17, 24, 33, 45, 52, 61, 68, 77, 84, 96, 110, 117, 121, 125, 130, 136, 142, 151}
16 func (i Op) String() string {
17 switch {
18 case 1 <= i && i <= 19:
19 i -= 1
20 return _Op_name_0[_Op_index_0[i]:_Op_index_0[i+1]]
21 case i == 128:
22 return _Op_name_1
23 default:
24 return "Op(" + strconv.FormatInt(int64(i), 10) + ")"