51 references to AddChild
System.Text.RegularExpressions (51)
System\Text\RegularExpressions\RegexNode.cs (14)
210loopAsChild.AddChild(Child(0)); 502atomic.AddChild(existingChild); 1251newAlternate.AddChild(children[i]); 1256newAlternate.AddChild(new RegexNode(RegexNodeKind.Empty, children[i].Options)); 1264atomic.AddChild(newAlternate); 1271newConcat.AddChild(required); 1272newConcat.AddChild(newAlternate); 1429newAlternate.AddChild(branch); 1468atomic.AddChild(newAlternate); 1473newConcat.AddChild(prefix); 1474newConcat.AddChild(newAlternate); 2292AddChild(new RegexNode(RegexNodeKind.Empty, Options)); 2310AddChild(new RegexNode(RegexNodeKind.Empty, Options)); 3183result.AddChild(this);
System\Text\RegularExpressions\RegexParser.cs (37)
452_concatenation!.AddChild(_unit!); 493_concatenation!.AddChild(_unit!); 520_concatenation!.AddChild(_unit!.MakeQuantifier(lazy, min, max)); 561_concatenation.AddChild(ScanDollar()); 1741lookbehindCr.AddChild(new RegexNode(RegexNodeKind.One, lookbehindOptsNoCase, '\r')); 1745crThenLf.AddChild(lookbehindCr); 1746crThenLf.AddChild(new RegexNode(RegexNodeKind.One, lookaheadOptsNoCase, '\n')); 1750guard.AddChild(crThenLf); 1769crlfEnd.AddChild(new RegexNode(RegexNodeKind.One, lookaheadOptsNoCase, '\r')); 1770crlfEnd.AddChild(new RegexNode(RegexNodeKind.One, lookaheadOptsNoCase, '\n')); 1771crlfEnd.AddChild(new RegexNode(RegexNodeKind.End, lookaheadOpts)); 1775anyNewLineOptEnd.AddChild(new RegexNode(RegexNodeKind.Set, lookaheadOptsNoCase, RegexCharClass.AnyNewLineClass).MakeQuantifier(false, 0, 1)); 1776anyNewLineOptEnd.AddChild(new RegexNode(RegexNodeKind.End, lookaheadOpts)); 1780innerAlt.AddChild(crlfEnd); 1781innerAlt.AddChild(anyNewLineOptEnd); 1783lookahead.AddChild(innerAlt); 1787result.AddChild(lookahead); 1788result.AddChild(AnyNewLineCrLfGuardNode()); 1806innerAlt.AddChild(new RegexNode(RegexNodeKind.Set, lookaheadOptsNoCase, RegexCharClass.AnyNewLineClass)); 1807innerAlt.AddChild(new RegexNode(RegexNodeKind.End, lookaheadOpts)); 1809lookahead.AddChild(innerAlt); 1813result.AddChild(lookahead); 1814result.AddChild(AnyNewLineCrLfGuardNode()); 1832innerAlt.AddChild(new RegexNode(RegexNodeKind.Set, lookbehindOptsNoCase, RegexCharClass.AnyNewLineClass)); 1833innerAlt.AddChild(new RegexNode(RegexNodeKind.Beginning, lookbehindOpts)); 1835lookbehind.AddChild(innerAlt); 1839result.AddChild(lookbehind); 1840result.AddChild(AnyNewLineCrLfGuardNode()); 2193_concatenation!.AddChild(RegexNode.CreateOneWithCaseConversion(_pattern[pos], isReplacement ? _options & ~RegexOptions.IgnoreCase : _options, _culture, ref _caseBehavior)); 2197_concatenation!.AddChild(new RegexNode(RegexNodeKind.Multi, _options & ~RegexOptions.IgnoreCase, _pattern.Substring(pos, cch))); 2203_concatenation!.AddChild(RegexNode.CreateOneWithCaseConversion(c, _options, _culture, ref _caseBehavior)); 2234_group.AddChild(_unit); 2254_group.AddChild(_concatenation!.ReverseConcatenationIfRightToLeft()); 2258_alternation!.AddChild(_concatenation!.ReverseConcatenationIfRightToLeft()); 2269_group.AddChild(_concatenation!.ReverseConcatenationIfRightToLeft()); 2278_alternation!.AddChild(_concatenation!.ReverseConcatenationIfRightToLeft()); 2279_group.AddChild(_alternation);