The parameter `ddef` should clearly be typed as `DefDef`, not as `Tree`.