internal void AppendIfGroupInternal(string groupName, object trueContent, object falseContent, bool checkGroupName)
{
if (checkGroupName)
RegexUtility.CheckGroupName(groupName);
if (trueContent == null)
throw new ArgumentNullException(nameof(trueContent));
AppendGroupStart(false);
AppendDirect('(');
AppendDirect(groupName);
AppendGroupEnd(false);
if (_fBuilder)
_builder.AddInfo(SyntaxKind.IfGroup);
RegexOptions currentOptions = CurrentOptions;
_indentLevel++;
if (falseContent == null)
{
Append(trueContent, GroupMode.None);
}
else
{
Append(trueContent);
AppendOr(falseContent);
}
AppendGroupEnd();
CurrentOptions = currentOptions;
}