14 writes to Parent
System.Text.RegularExpressions.Generator (14)
parent\src\System\Text\RegularExpressions\RegexNode.cs (11)
486
reduced.
Parent
= this;
1149
atChildren[k].
Parent
= this;
1156
atChild.
Parent
= this;
1808
atChildren[k].
Parent
= this;
1815
atChild.
Parent
= this;
3327
newChild.
Parent
= this; // so that the child can see its parent while being reduced
3329
newChild.
Parent
= this; // in case Reduce returns a different node that needs to be reparented
3349
newChild.
Parent
= this; // so that the child can see its parent while being reduced
3351
newChild.
Parent
= this; // in case Reduce returns a different node that needs to be reparented
3361
newChild.
Parent
= this; // so that the child can see its parent while being reduced
3363
newChild.
Parent
= this; // in case Reduce returns a different node that needs to be reparented
parent\src\System\Text\RegularExpressions\RegexParser.cs (3)
2213
_group!.
Parent
= _stack;
2214
_alternation!.
Parent
= _group;
2215
_concatenation!.
Parent
= _alternation;
19 references to Parent
System.Text.RegularExpressions.Generator (19)
parent\src\System\Text\RegularExpressions\RegexNode.cs (8)
205
if (
Parent
is not { Kind: RegexNodeKind.Atomic })
373
Debug.Assert(rootNode.
Parent
is null);
440
if (node.
Parent
is { Kind: RegexNodeKind.Concatenate } parent)
546
node.
Parent
is not { Kind: RegexNodeKind.Atomic }) // validate grandparent isn't atomic
1316
if (alternation.
Parent
is RegexNode { Kind: RegexNodeKind.Atomic })
1523
if (alternation.
Parent
is RegexNode parent && parent.Kind == RegexNodeKind.Atomic)
2700
RegexNode? parent = node.
Parent
;
2794
node.
Parent
is not RegexNode parent)
parent\src\System\Text\RegularExpressions\RegexParser.cs (3)
2223
_alternation = _concatenation!.
Parent
;
2224
_group = _alternation!.
Parent
;
2225
_stack = _group!.
Parent
;
RegexGenerator.Emitter.cs (8)
1818
Debug.Assert(node.
Parent
is not null);
5771
RegexNodeKind.Concatenate when node.
Parent
is not { Kind: RegexNodeKind.Alternate or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional } => true,
5785
string tag = node.
Parent
?.Kind switch
5787
RegexNodeKind.ExpressionConditional when node.
Parent
.Child(0) == node => "Condition: ",
5788
RegexNodeKind.ExpressionConditional when node.
Parent
.Child(1) == node => "Matched: ",
5789
RegexNodeKind.ExpressionConditional when node.
Parent
.Child(2) == node => "Not Matched: ",
5791
RegexNodeKind.BackreferenceConditional when node.
Parent
.Child(0) == node => "Matched: ",
5792
RegexNodeKind.BackreferenceConditional when node.
Parent
.Child(1) == node => "Not Matched: ",