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

◆ AddGroup()

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

Definition at line 1968 of file RegexParser.cs.

1969 {
1970 if (_group.Type == 34 || _group.Type == 33)
1971 {
1973 if ((_group.Type == 33 && _group.ChildCount() > 2) || _group.ChildCount() > 3)
1974 {
1975 throw MakeException(RegexParseError.AlternationHasTooManyConditions, System.SR.AlternationHasTooManyConditions);
1976 }
1977 }
1978 else
1979 {
1982 }
1983 _unit = _group;
1984 }
static string AlternationHasTooManyConditions
Definition SR.cs:84
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._unit, System.Text.RegularExpressions.RegexNode.AddChild(), System.SR.AlternationHasTooManyConditions, System.Text.RegularExpressions.RegexNode.ChildCount(), System.Text.RegularExpressions.RegexParser.MakeException(), System.Text.RegularExpressions.RegexNode.ReverseLeft(), and System.Text.RegularExpressions.RegexNode.Type.

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