private ExpressionNode transformArguments(ReferenceNode node, TransformContext context) {
        List<ExpressionNode> arguments = node.getArguments().expressions();
        List<ExpressionNode> transformedArguments = new ArrayList<>(arguments.size());
        for (ExpressionNode argument : arguments)
            transformedArguments.add(transform(argument, context));
        return node.setArguments(transformedArguments);
    }
Returns true if the given reference is an attribute, constant or query feature
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/transform/ConstantDereferencer.java