示例#1
0
        public override void Visit(SqlCompoundStatement codeObject)
        {
            _stringBuilder.Append("BEGIN");

            using (_stringBuilder.CreateIndentationContext())
            {
                foreach (var statement in codeObject.Statements)
                {
                    _stringBuilder
                    .AppendIndentedLine()
                    .AppendIndentedLine();

                    statement.Accept(this);
                }
            }

            _stringBuilder
            .AppendIndentedLine()
            .AppendIndentedLine()
            .Append("END");
        }
 internal SqlCompoundStatementFormatter(FormatterVisitor visitor, SqlCompoundStatement codeObject)
     : base(visitor, codeObject, true)
 {
 }
 public override void Visit(SqlCompoundStatement codeObject)
 {
     Format(codeObject);
 }