regexp/syntax.Regexp.Sub (field)

102 uses

	regexp/syntax (current package)
		compile.go#L129: 		sub := c.compile(re.Sub[0])
		compile.go#L133: 		return c.star(c.compile(re.Sub[0]), re.Flags&NonGreedy != 0)
		compile.go#L135: 		return c.plus(c.compile(re.Sub[0]), re.Flags&NonGreedy != 0)
		compile.go#L137: 		return c.quest(c.compile(re.Sub[0]), re.Flags&NonGreedy != 0)
		compile.go#L139: 		if len(re.Sub) == 0 {
		compile.go#L143: 		for i, sub := range re.Sub {
		compile.go#L153: 		for _, sub := range re.Sub {
		parse.go#L224: 		size = 2 + p.calcSize(re.Sub[0], false)
		parse.go#L226: 		size = 1 + p.calcSize(re.Sub[0], false)
		parse.go#L228: 		for _, sub := range re.Sub {
		parse.go#L232: 		for _, sub := range re.Sub {
		parse.go#L235: 		if len(re.Sub) > 1 {
		parse.go#L236: 			size += int64(len(re.Sub)) - 1
		parse.go#L239: 		sub := p.calcSize(re.Sub[0], false)
		parse.go#L281: 	for _, sub := range re.Sub {
		parse.go#L434: 	re.Sub = re.Sub0[:1]
		parse.go#L435: 	re.Sub[0] = sub
		parse.go#L471: 	for _, sub := range re.Sub {
		parse.go#L557: 	re.Sub = re.Sub0[:0]
		parse.go#L560: 			re.Sub = append(re.Sub, sub.Sub...)
		parse.go#L563: 			re.Sub = append(re.Sub, sub)
		parse.go#L567: 		re.Sub = p.factor(re.Sub)
		parse.go#L568: 		if len(re.Sub) == 1 {
		parse.go#L570: 			re = re.Sub[0]
		parse.go#L650: 			re.Sub = append(re.Sub[:0], prefix, suffix)
		parse.go#L683: 				(isCharClass(first) || (first.Op == OpRepeat && first.Min == first.Max && isCharClass(first.Sub[0]))) {
		parse.go#L708: 			re.Sub = append(re.Sub[:0], prefix, suffix)
		parse.go#L782: 	if re.Op == OpConcat && len(re.Sub) > 0 {
		parse.go#L783: 		re = re.Sub[0]
		parse.go#L794: 	if re.Op == OpConcat && len(re.Sub) > 0 {
		parse.go#L797: 		sub := re.Sub[0]
		parse.go#L799: 		re.Sub[0] = sub
		parse.go#L802: 			switch len(re.Sub) {
		parse.go#L806: 				re.Sub = nil
		parse.go#L809: 				re = re.Sub[1]
		parse.go#L812: 				copy(re.Sub, re.Sub[1:])
		parse.go#L813: 				re.Sub = re.Sub[:len(re.Sub)-1]
		parse.go#L834: 	if re.Op == OpConcat && len(re.Sub) > 0 {
		parse.go#L835: 		sub := re.Sub[0]
		parse.go#L848: 	if re.Op == OpConcat && len(re.Sub) > 0 {
		parse.go#L850: 			p.reuse(re.Sub[0])
		parse.go#L852: 		re.Sub = re.Sub[:copy(re.Sub, re.Sub[1:])]
		parse.go#L853: 		switch len(re.Sub) {
		parse.go#L856: 			re.Sub = nil
		parse.go#L859: 			re = re.Sub[0]
		parse.go#L1434: 		re2.Sub = re2.Sub0[:1]
		parse.go#L1435: 		re2.Sub[0] = re1
		regexp.go#L20: 	Sub      []*Regexp  // subexpressions, if any
		regexp.go#L88: 		if len(x.Sub) != len(y.Sub) {
		regexp.go#L91: 		for i, sub := range x.Sub {
		regexp.go#L92: 			if !sub.Equal(y.Sub[i]) {
		regexp.go#L98: 		if x.Flags&NonGreedy != y.Flags&NonGreedy || !x.Sub[0].Equal(y.Sub[0]) {
		regexp.go#L103: 		if x.Flags&NonGreedy != y.Flags&NonGreedy || x.Min != y.Min || x.Max != y.Max || !x.Sub[0].Equal(y.Sub[0]) {
		regexp.go#L108: 		if x.Cap != y.Cap || x.Name != y.Name || !x.Sub[0].Equal(y.Sub[0]) {
		regexp.go#L193: 		if re.Sub[0].Op != OpEmptyMatch {
		regexp.go#L194: 			writeRegexp(b, re.Sub[0])
		regexp.go#L198: 		if sub := re.Sub[0]; sub.Op > OpCapture || sub.Op == OpLiteral && len(sub.Rune) > 1 {
		regexp.go#L227: 		for _, sub := range re.Sub {
		regexp.go#L237: 		for i, sub := range re.Sub {
		regexp.go#L298: 	for _, sub := range re.Sub {
		regexp.go#L317: 	for _, sub := range re.Sub {
		simplify.go#L22: 		for i, sub := range re.Sub {
		simplify.go#L29: 				nre.Sub = append(nre.Sub0[:0], re.Sub[:i]...)
		simplify.go#L32: 				nre.Sub = append(nre.Sub, nsub)
		simplify.go#L38: 		sub := re.Sub[0].Simplify()
		simplify.go#L49: 		sub := re.Sub[0].Simplify()
		simplify.go#L65: 			nre.Sub = nre.Sub0[:0]
		simplify.go#L67: 				nre.Sub = append(nre.Sub, sub)
		simplify.go#L69: 			nre.Sub = append(nre.Sub, simplify1(OpPlus, re.Flags, sub, nil))
		simplify.go#L88: 			prefix.Sub = prefix.Sub0[:0]
		simplify.go#L90: 				prefix.Sub = append(prefix.Sub, sub)
		simplify.go#L99: 				nre2.Sub = append(nre2.Sub0[:0], sub, suffix)
		simplify.go#L105: 			prefix.Sub = append(prefix.Sub, suffix)
		simplify.go#L144: 	if re != nil && re.Op == op && re.Flags&NonGreedy == flags&NonGreedy && sub == re.Sub[0] {
		simplify.go#L149: 	re.Sub = append(re.Sub0[:0], sub)

	regexp
		regexp.go#L291: 		return minInputLen(re.Sub[0])
		regexp.go#L293: 		return re.Min * minInputLen(re.Sub[0])
		regexp.go#L296: 		for _, sub := range re.Sub {
		regexp.go#L301: 		l := minInputLen(re.Sub[0])
		regexp.go#L303: 		for _, sub := range re.Sub[1:] {