Example #1
0
 void ISqlVisitableNode.Accept(ISqlNodeVisitor visitor)
 {
     if (visitor is SqlCodeObjectBuilder)
     {
         BuildBlock((SqlCodeObjectBuilder)visitor);
     }
 }
        public override TResult Accept <TParameter, TResult>(
            ISqlNodeVisitor <TParameter, TResult> visitor,
            TParameter parameter)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            return(visitor.VisitPopulateNode(this, parameter));
        }
 public abstract TResult Accept <TParameter, TResult>(
     ISqlNodeVisitor <TParameter, TResult> visitor,
     TParameter parameter
     );
Example #4
0
 void ISqlVisitableNode.Accept(ISqlNodeVisitor visitor)
 {
     if (visitor is SqlCodeObjectBuilder)
         BuildBlock((SqlCodeObjectBuilder) visitor);
 }
Example #5
0
 public SubtreeVisitor(ISqlNodeVisitor inner, Predicate <ISqlNode> include)
 {
     _inner   = inner ?? throw new ArgumentNullException(nameof(inner));
     _include = include ?? (n => true);
 }