Hello, is there an API for rename refactor of a Ps...
# arrow-meta
d
Hello, is there an API for rename refactor of a PsiElement? Basically to rename a property and update its usages or the only way is to do that manually?
r
It’s currently a non goal of meta but could be built as a compiler plugin with it. IDEA already supports this refactor though. Are you wanting to automate it in the command line?
d
Well since I'm writing a compiler plugin which replaces a private property with itself and a public one, I want to see if I can rename the private one to something else and use its name for the public one. This would mean that I have to update all of the private property usages within the class to use the new name. I haven't played around with it yet, but I saw that the KtProperty object has references property, so I'm wondering whether I can iterate over that and do a Transform.replace