Rename: Add quotes to declaration name if necessary
#KT-22708 Fixed
This commit is contained in:
@@ -104,7 +104,8 @@ abstract class KtNamedDeclarationStub<T extends KotlinStubWithFqName<?>> extends
|
||||
}
|
||||
}
|
||||
|
||||
PsiElement newIdentifier = KtPsiFactory(this).createNameIdentifierIfPossible(name);
|
||||
PsiElement newIdentifier =
|
||||
KtPsiFactory(this).createNameIdentifierIfPossible(KtPsiUtilKt.quoteIfNeeded(name));
|
||||
if (newIdentifier != null) {
|
||||
KtPsiUtilKt.astReplace(identifier, newIdentifier);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user