public void visitFunction(Function function)
{
ArithmeticExpression[] children = function.getChildren();
if (function instanceof Count)
{
mCurrentExpression = new Count(
(Count)function,
cloneArithmeticExpression(children[0]));
}
else if (function instanceof Average)
{