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