33 references to Loop
System.Text.RegularExpressions (33)
System\Text\RegularExpressions\RegexNode.cs (15)
264case RegexNodeKind.Loop: 453if ((existingChild.Kind is RegexNodeKind.Alternate or RegexNodeKind.BackreferenceConditional or RegexNodeKind.ExpressionConditional or RegexNodeKind.Loop or RegexNodeKind.Lazyloop) && 493goto case RegexNodeKind.Loop; 494case RegexNodeKind.Loop: 543RegexNodeKind.Loop or RegexNodeKind.Lazyloop => ReduceLoops(), 767Debug.Assert(Kind is RegexNodeKind.Loop or RegexNodeKind.Lazyloop); 783if (kind == RegexNodeKind.Loop) 1413case RegexNodeKind.Loop or RegexNodeKind.Lazyloop when node.M > 0: 1858if (node.Kind == RegexNodeKind.Loop) 1935Debug.Assert(node.Kind is RegexNodeKind.Loop or RegexNodeKind.Lazyloop); 2076case RegexNodeKind.Loop or RegexNodeKind.Lazyloop when subsequent.M > 0: 2285case RegexNodeKind.Loop: 2391case RegexNodeKind.Loop or RegexNodeKind.Lazyloop: 2710var result = new RegexNode(lazy ? RegexNodeKind.Lazyloop : RegexNodeKind.Loop, Options, min, max); 2938case RegexNodeKind.Loop:
System\Text\RegularExpressions\RegexNodeKind.cs (3)
32/// This is purely a representational optimization, equivalent to a <see cref="Loop"/> wrapped around a <see cref="One"/>. 37/// This is purely a representational optimization, equivalent to a <see cref="Loop"/> wrapped around a <see cref="Notone"/>. 41/// This is purely a representational optimization, equivalent to a <see cref="Loop"/> wrapped around a <see cref="Set"/>.
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (6)
226case RegexNodeKind.Loop or RegexNodeKind.Lazyloop when node.M > 0: 439case RegexNodeKind.Loop or RegexNodeKind.Lazyloop when node.M > 0: 493case RegexNodeKind.Loop or RegexNodeKind.Lazyloop when node.M > 0: 686case RegexNodeKind.Lazyloop or RegexNodeKind.Loop when node.M > 0: 1027case RegexNodeKind.Loop: 1201(nextChild.Kind is RegexNodeKind.Loop or RegexNodeKind.Lazyloop && nextChild.M >= 1))
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (3)
50case RegexNodeKind.Loop or RegexNodeKind.Lazyloop when node.M != node.N: 75case RegexNodeKind.Loop: 111RegexNodeKind.Loop or RegexNodeKind.Lazyloop when node.N == 1 => true,
System\Text\RegularExpressions\RegexWriter.cs (3)
311case RegexNodeKind.Loop | BeforeChild: 327case RegexNodeKind.Loop | AfterChild: 331int Lazy = (nodeType - (RegexNodeKind.Loop | AfterChild));
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (2)
86case RegexNodeKind.Loop: 250case RegexNodeKind.Loop:
System\Text\RegularExpressions\Symbolic\SymbolicRegexKind.cs (1)
15/// <summary>A node that matches a loop (e.g. <see cref="RegexNodeKind.Loop"/>, <see cref="RegexNodeKind.Lazyloop"/>, <see cref="RegexNodeKind.Setloop"/>, etc.).</summary>