public static SqlStatement Build(PlSqlParser.AlterTableStatementContext context)
        {
            var tableName = Name.Object(context.objectName());

            var actions = context.alterTableAction().Select(ActionBuilder.Build).ToArray();

            if (actions.Length == 1)
            {
                return(new AlterTableStatement(tableName, actions[0]));
            }

            var list = new SequenceOfStatements();

            foreach (var action in actions)
            {
                list.Statements.Add(new AlterTableStatement(tableName, action));
            }

            return(list);
        }
 public override SqlStatement VisitAlterTableStatement(PlSqlParser.AlterTableStatementContext context)
 {
     return(AlterTableBuilder.Build(context));
 }