public static Expression ReplaceConstantsWithArrayIndexes(
            Expression node, ConstantExpression[] constantExpressions, ParameterExpression constantsParameter)
        {
            var visitor = new ConstantArrayIndexizerVisitor(constantExpressions, constantsParameter);

            return(visitor.Visit(node));
        }
 private static Expression ReplaceConstantsWithArrayLookup(
     Expression expression, ConstantExpression[] constants, ParameterExpression constantsParameter)
 {
     return(ConstantArrayIndexizerVisitor.ReplaceConstantsWithArrayIndexes(
                expression, constants, constantsParameter));
 }