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