97 references to Child
System.Text.RegularExpressions (97)
System\Text\RegularExpressions\RegexNode.cs (59)
215RegexNode child = node.Child(i); 369RegexNode node = rootNode.Child(0); // skip implicit root capture node 376node = node.Child(0); 381node = node.Child(0); 441node = node.Child(0); 452RegexNode existingChild = node.Child(node.ChildCount() - 1); 473node.Child(i).EliminateEndingBacktracking(); 478node = node.Child(0); 501node = node.Child(0); 5641 => Child(0), 583u = u.Child(0); 609RegexNode child = Child(0); 613child = atomic.Child(0); 746child = atomic.Child(0); 777RegexNode child = u.Child(0); 846RegexNode child = u.Child(0); 933return Child(0); 1104RegexNode required = children[startingIndex].Child(0); 1120RegexNode other = children[endingIndex].Child(0); 1313ProcessOneOrMulti(branch.Kind == RegexNodeKind.Concatenate ? branch.Child(0) : branch, startingSpan); 1365return alternation.ChildCount() == 1 ? alternation.Child(0) : alternation; 1378RegexNode branch = Kind == RegexNodeKind.Concatenate ? Child(0) : this; 1415node = node.Child(0); 1508return Child(0); 1515RegexNode child = Child(i); 1818Child(i).FindAndMakeLoopsAtomic(); 1850node = node.Child(node.ChildCount() - 1); 1917ProcessNode(node.Child(b), subsequent); 1938node = node.Child(0); 1943node = node.Child(0); 1955RegexNode lastConcatChild = node.Child(concatCount - 1); 1956if (CanBeMadeAtomic(lastConcatChild, node.Child(0), iterateNullableSubsequent: false, allowLazy: false)) 1985if (Child(0).Kind == RegexNodeKind.Empty) 2032RegexNode condition = Child(0); 2035ReplaceChild(0, condition.Child(0)); 2040condition = Child(0); 2077subsequent = subsequent.Child(0); 2103if (!CanBeMadeAtomic(node, subsequent.Child(i), iterateNullableSubsequent, allowLazy: false)) 2287return (int)Math.Min(int.MaxValue - 1, (long)M * Child(0).ComputeMinLength()); 2294int min = Child(0).ComputeMinLength(); 2297min = Math.Min(min, Child(i).ComputeMinLength()); 2304return Math.Min(Child(0).ComputeMinLength(), Child(1).ComputeMinLength()); 2308return Math.Min(Child(1).ComputeMinLength(), Child(2).ComputeMinLength()); 2317sum += Child(i).ComputeMinLength(); 2327return Child(0).ComputeMinLength(); 2395if (Child(0).ComputeMaxLength() is int childMaxLength) 2411if (Child(0).ComputeMaxLength() is not int maxLength) 2418if (Child(i).ComputeMaxLength() is not int next) 2434return Child(i).ComputeMaxLength() is int yes && Child(i + 1).ComputeMaxLength() is int no ? 2446if (Child(i).ComputeMaxLength() is not int length) 2465return Child(0).ComputeMaxLength(); 2527RegexNode child = Child(i); 2645RegexNode child = Child(childIndex); 2653child = Child(exclusiveEnd); 2821if (ExceedsMaxDepthAllowedDepth(node.Child(i), allowedDepth - 1)) 2854curNode = curNode.Child(curChild);
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (33)
86node = node.Child(0); 217if (!FindPrefixesCore(node.Child(i), results, ignoreCase)) 231if (!FindPrefixesCore(node.Child(0), results, ignoreCase)) 258_ = FindPrefixesCore(node.Child(i), alternateBranchResults, ignoreCase); 368if (!Process(node.Child(i), ref vsb)) 385Process(node.Child(0), ref vsb); 401Process(node.Child(i), ref alternateSb); 445if (!Process(node.Child(0), ref vsb)) 456return Process(node.Child(0), ref vsb); 494node = node.Child(0); 684return TryFindRawFixedSets(node.Child(0), results, ref distance, thorough); 693TryFindRawFixedSets(node.Child(0), results, ref distance, thorough); 701if (!TryFindRawFixedSets(node.Child(i), results, ref distance, thorough)) 721allSameSize &= TryFindRawFixedSets(node.Child(i), localResults, ref localDistance, thorough); 1022return TryFindFirstCharClass(node.Child(0), ref cc); 1029return TryFindFirstCharClass(node.Child(0), ref cc) switch 1045bool? childResult = TryFindFirstCharClass(node.Child(i), ref cc); 1063bool? childResult = TryFindFirstCharClass(node.Child(i), ref cc); 1081return (TryFindFirstCharClass(node.Child(branchStart), ref cc), TryFindFirstCharClass(node.Child(branchStart + 1), ref cc)) switch 1116node = node.Child(0); 1130RegexNode firstChild = node.Child(0); 1133firstChild = firstChild.Child(0); 1142RegexNode nextChild = node.Child(1); 1150nextChild = node.Child(2); 1203nextChild = nextChild.Child(0); 1267node = node.Child(0); 1281if (node.Child(i).Kind is not (RegexNodeKind.Empty or RegexNodeKind.PositiveLookaround or RegexNodeKind.NegativeLookaround)) 1283child = node.Child(i); 1292if (node.Child(i).Kind is not (RegexNodeKind.Empty or RegexNodeKind.PositiveLookaround or RegexNodeKind.NegativeLookaround)) 1294child = node.Child(i); 1313RegexNodeKind anchor = FindLeadingOrTrailingAnchor(node.Child(0), leading); 1324if (FindLeadingOrTrailingAnchor(node.Child(i), leading) != anchor)
System\Text\RegularExpressions\RegexReplacement.cs (1)
46RegexNode child = concat.Child(i);
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (1)
85RegexNode child = node.Child(i);
System\Text\RegularExpressions\RegexWriter.cs (1)
91curNode = curNode.Child(curChild);
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (2)
99stack.Push((node.Child(i), childResults[i], CreateChildResultArray(node.Child(i).ChildCount())));