Lines Matching full:collapse
313 return p.push(p.collapse(subs, OpConcat))
339 return p.push(p.collapse(subs, OpAlternate))
365 // collapse returns the result of applying op to sub.
369 func (p *parser) collapse(subs []*Regexp, op Op) *Regexp {
459 suffix := p.collapse(sub[start:i], OpAlternate) // recurse
509 suffix := p.collapse(sub[start:i], OpAlternate) // recurse
522 // Round 3: Collapse runs of single literals into character classes.
569 // Round 4: Collapse runs of empty matches into a single empty match.