Deveel.Data.Sql.Statements.StatementVisitor.VisitPlSqlBlock C# (CSharp) Méthode

VisitPlSqlBlock() protected méthode

protected VisitPlSqlBlock ( PlSqlBlockStatement statement ) : SqlStatement
statement PlSqlBlockStatement
Résultat SqlStatement
        protected virtual SqlStatement VisitPlSqlBlock(PlSqlBlockStatement statement)
        {
            var block = new PlSqlBlockStatement();
            foreach (var declaration in statement.Declarations) {
                block.Declarations.Add(VisitStatement(declaration));
            }

            foreach (var child in statement.Statements) {
                block.Statements.Add(VisitStatement(child));
            }

            foreach (var handler in statement.ExceptionHandlers) {
                block.ExceptionHandlers.Add(handler);
            }

            return block;
        }