Rename: Fix field identifier replacement #KT-8018 Fixed

This commit is contained in:
Alexey Sedunov
2015-06-15 13:43:53 +03:00
parent 98dce65337
commit 62f9672461
6 changed files with 44 additions and 2 deletions
@@ -331,8 +331,8 @@ public class JetPsiFactory(private val project: Project) {
public fun createLabeledExpression(labelName: String): JetLabeledExpression
= createExpression("$labelName@ 1") as JetLabeledExpression
public fun createFieldIdentifier(fieldName: String): JetExpression {
return createExpression("$" + fieldName)
public fun createFieldIdentifier(fieldName: String): PsiElement {
return (createExpression("$" + fieldName) as JetNameReferenceExpression).getReferencedNameElement()
}
public fun createTypeCodeFragment(text: String, context: PsiElement?): JetTypeCodeFragment {