public override void VisitDeleteStatement(DeleteStatementSyntax node)
 {
     AppendLeadingComments(node);
     AppendIndented("{0}.delete(", Soql);
     node.Expression.Accept(this);
     Append(");");
     AppendTrailingComments(node);
 }
        public void ApexDeleteStatementIsGenerated()
        {
            var deleteStatement = new DeleteStatementSyntax
            {
                Expression = new ExpressionSyntax("contactOld"),
            };

            Check(deleteStatement, @"delete contactOld;");
        }
Esempio n. 3
0
        public void ApexDeleteStatementGeneratesSoqlHelperMethod()
        {
            var deleteStatement = new DeleteStatementSyntax
            {
                Expression = new ExpressionSyntax("contactOld")
            };

            Check(deleteStatement, @"Soql.delete(contactOld);");
        }
Esempio n. 4
0
 public virtual void VisitDeleteStatement(DeleteStatementSyntax node) => DefaultVisit(node);