Tool for automatically upggrading D source code