internal override void ProcessInterChildRegion(SqlCodeObject previousChild, SqlCodeObject nextChild)
        {
            Validate.IsNotNull(nameof(previousChild), previousChild);
            Validate.IsNotNull(nameof(nextChild), nextChild);

            if (nextChild is SqlModuleOption)
            {
                if (!foundTokenWith)
                {
                    DecrementIndentLevel();
                }
                for (int i = previousChild.Position.endTokenNumber; i < nextChild.Position.startTokenNumber; i++)
                {
                    if (!foundTokenWith && TokenManager.TokenList[i].TokenId == FormatterTokens.TOKEN_WITH)
                    {
                        IncrementIndentLevel();
                        foundTokenWith = true;
                    }
                    SimpleProcessToken(i, FormatterUtilities.NormalizeNewLinesEnsureOneNewLineMinimum);
                }
            }
            else if (previousChild is SqlObjectIdentifier)
            {
                NewLineSeparatedListFormatter.ProcessInterChildRegion(previousChild, nextChild);
            }
            else
            {
                CommaSeparatedListFormatter.ProcessInterChildRegion(previousChild, nextChild);
            }
        }
 internal SqlProcedureDefinitionFormatter(FormatterVisitor visitor, SqlProcedureDefinition codeObject)
     : base(visitor, codeObject)
 {
     NewLineSeparatedListFormatter = new NewLineSeparatedListFormatter(visitor, codeObject, true);
     CommaSeparatedListFormatter   = new CommaSeparatedListFormatter(visitor, codeObject, true);
     foundTokenWith = false;
 }
 internal SqlSelectClauseFormatter(FormatterVisitor visitor, SqlSelectClause codeObject)
     : base(visitor, codeObject, visitor.Context.FormatOptions.PlaceEachReferenceOnNewLineInQueryStatements)
 {
     NewLineSeparatedListFormatter = new NewLineSeparatedListFormatter(visitor, codeObject, true);
 }
 internal override void ProcessPrefixRegion(int startTokenNumber, int firstChildStartTokenNumber)
 {
     NewLineSeparatedListFormatter.ProcessPrefixRegion(startTokenNumber, firstChildStartTokenNumber);
 }