pub fn migrate( text: &str, file: &Path, root: &Path, kind: FileKind, ) -> Result<String, Vec<Diagnostic>>