13 writes to Parent
System.Text.RegularExpressions (13)
System\Text\RegularExpressions\RegexNode.cs (10)
985
atChildren[k].
Parent
= this;
992
atChild.
Parent
= this;
1566
atChildren[k].
Parent
= this;
1573
atChild.
Parent
= this;
2718
newChild.
Parent
= this; // so that the child can see its parent while being reduced
2720
newChild.
Parent
= this; // in case Reduce returns a different node that needs to be reparented
2740
newChild.
Parent
= this; // so that the child can see its parent while being reduced
2742
newChild.
Parent
= this; // in case Reduce returns a different node that needs to be reparented
2752
newChild.
Parent
= this; // so that the child can see its parent while being reduced
2754
newChild.
Parent
= this; // in case Reduce returns a different node that needs to be reparented
System\Text\RegularExpressions\RegexParser.cs (3)
2037
_group!.
Parent
= _stack;
2038
_alternation!.
Parent
= _group;
2039
_concatenation!.
Parent
= _alternation;
15 references to Parent
System.Text.RegularExpressions (15)
System\Text\RegularExpressions\RegexNode.cs (11)
46
/// During parsing, top-level nodes are also stacked onto a parse stack (a stack of trees) using <see cref="
Parent
"/>.
47
/// After parsing, <see cref="
Parent
"/> is the node in the tree that has this node as or in <see cref="Children"/>.
216
Debug.Assert(child.
Parent
== node, $"{child.Describe()} missing reference to parent {node.Describe()}");
333
Debug.Assert(rootNode.
Parent
is null);
386
if (node.
Parent
is { Kind: RegexNodeKind.Concatenate } parent)
454
(node.
Parent
is null || node.
Parent
.Kind != RegexNodeKind.Atomic)) // validate grandparent isn't atomic
1147
if (alternation.
Parent
is RegexNode { Kind: RegexNodeKind.Atomic })
1351
if (alternation.
Parent
is RegexNode parent && parent.Kind == RegexNodeKind.Atomic)
2208
RegexNode? parent = subsequent.
Parent
;
2868
curNode = curNode.
Parent
;
System\Text\RegularExpressions\RegexParser.cs (3)
2047
_alternation = _concatenation!.
Parent
;
2048
_group = _alternation!.
Parent
;
2049
_stack = _group!.
Parent
;
System\Text\RegularExpressions\RegexWriter.cs (1)
103
curNode = curNode.
Parent
!;