Lines Matching refs:Op
18 switch re.Op {
39 return simplify1(re.Op, re.Flags, sub, re)
45 return &Regexp{Op: OpEmptyMatch}
64 nre := &Regexp{Op: OpConcat}
87 prefix = &Regexp{Op: OpConcat}
98 nre2 := &Regexp{Op: OpConcat}
113 return &Regexp{Op: OpNoMatch}
123 // Regexp{Op: op, Flags: flags, Sub: {sub}}
134 func simplify1(op Op, flags Flags, sub, re *Regexp) *Regexp {
137 if sub.Op == OpEmptyMatch {
141 if op == sub.Op && flags&NonGreedy == sub.Flags&NonGreedy {
144 if re != nil && re.Op == op && re.Flags&NonGreedy == flags&NonGreedy && sub == re.Sub[0] {
148 re = &Regexp{Op: op, Flags: flags}