Exemplo n.º 1
0
        public void Visit(DeleteStatement deleteStatement)
        {
            if (_innerVisitor != null)
            {
                deleteStatement.Accept(_innerVisitor);
            }
            if (deleteStatement.TopExpression != null)
            {
                deleteStatement.TopExpression.Accept(this);
            }

            deleteStatement.Target.Accept(this);

            if (deleteStatement.FromList != null)
            {
                foreach (var from in deleteStatement.FromList)
                {
                    from.Accept(this);
                }
            }

            if (deleteStatement.WhereClause != null)
            {
                deleteStatement.WhereClause.Accept(this);
            }
        }
Exemplo n.º 2
0
        public override void Visit(DeleteStatement node)
        {
            var whereClauseVisitor = new WhereClauseVisitor();

            node.Accept(whereClauseVisitor);

            if (whereClauseVisitor.whereClausefound)
            {
                errorCallback(RULE_NAME, "Delete " + RULE_TEXT, node.StartLine, GetColumnNumber(node));
            }
        }