public static List <ConstantExpression> FindConstants(Expression node)
        {
            var visitor = new ConstantFinderVisitor();

            visitor.Visit(node);
            return(visitor.constants);
        }
 public static List<ConstantExpression> FindConstants(Expression node)
 {
     var visitor = new ConstantFinderVisitor();
     visitor.Visit(node);
     return visitor.constants;
 }
Ejemplo n.º 3
0
 private static List <ConstantExpression> GetConstants(Expression expression) =>
 ConstantFinderVisitor.FindConstants(expression);
 private static List <ConstantExpression> GetConstants(Expression expression)
 {
     return(ConstantFinderVisitor.FindConstants(expression));
 }