push!(last(diags).actions, CSTParser.Diagnostics.TextEdit(loc1:loc1, string(" where {", replace(join((Expr(t) for t in sig.args[1].args[2:end] if !(t isa EXPR{P} where P <: PUNCTUATION)), ","), " ", ""), "}")))
It would be great if the auto-patching tool appeared formally in the ecosystem instead of only being a gist in a forum thread. It doesn’t seem like a huge stretch to put it in Compat.
In addition to discoverability, this also has the benefit that the deprecation warning itself could potentially advise to run the official patching tool.
It would be better to have scripts that are not tied to any particular editor. +1 for having an update-methods.jl or similar script distributed with Compat.