public override void Visit(SqlStringPathExpression sqlStringPathExpression)
        {
            if (sqlStringPathExpression.ParentPath != null)
            {
                sqlStringPathExpression.ParentPath.Accept(this);
            }

            this.writer.Write("[");
            sqlStringPathExpression.Value.Accept(this);
            this.writer.Write("]");
        }
Exemplo n.º 2
0
        public override int Visit(SqlStringPathExpression sqlStringPathExpression)
        {
            int hashCode = SqlStringPathExpressionHashCode;

            if (sqlStringPathExpression.ParentPath != null)
            {
                hashCode = CombineHashes(hashCode, sqlStringPathExpression.ParentPath.Accept(this));
            }

            hashCode = CombineHashes(hashCode, sqlStringPathExpression.Value.Accept(this));
            return(hashCode);
        }
 public override SqlObject Visit(SqlStringPathExpression sqlStringPathExpression)
 {
     return(SqlStringPathExpression.Create(
                sqlStringPathExpression.ParentPath?.Accept(this) as SqlPathExpression,
                sqlStringPathExpression.Value.Accept(this) as SqlStringLiteral));
 }
 public abstract void Visit(SqlStringPathExpression sqlObject);