Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PopGroup()

void System.Text.RegularExpressions.RegexParser.PopGroup ( )
inlineprivate

Definition at line 1876 of file RegexParser.cs.

1877 {
1881 _stack = _group.Next;
1882 if (_group.Type == 34 && _group.ChildCount() == 0)
1883 {
1884 if (_unit == null)
1885 {
1886 throw MakeException(RegexParseError.AlternationHasMalformedCondition, System.SR.AlternationHasMalformedCondition);
1887 }
1889 _unit = null;
1890 }
1891 }
static string AlternationHasMalformedCondition
Definition SR.cs:32
Definition SR.cs:7
void AddChild(RegexNode newChild)
RegexParseException MakeException(RegexParseError error, string message)

References System.Text.RegularExpressions.RegexParser._alternation, System.Text.RegularExpressions.RegexParser._concatenation, System.Text.RegularExpressions.RegexParser._group, System.Text.RegularExpressions.RegexParser._stack, System.Text.RegularExpressions.RegexParser._unit, System.Text.RegularExpressions.RegexNode.AddChild(), System.SR.AlternationHasMalformedCondition, System.Text.RegularExpressions.RegexNode.ChildCount(), System.Text.RegularExpressions.RegexParser.MakeException(), System.Text.RegularExpressions.RegexNode.Next, and System.Text.RegularExpressions.RegexNode.Type.

Referenced by System.Text.RegularExpressions.RegexParser.ScanRegex().