Pull Up/Extract Super: Support properties declared in the primary constructor
This commit is contained in:
@@ -439,6 +439,8 @@ class KtPsiFactory(private val project: Project) {
|
||||
return argumentList.arguments.single()
|
||||
}
|
||||
|
||||
fun createArgument(text: String) = createCallArguments("($text)").arguments.first()!!
|
||||
|
||||
fun createSuperTypeCallEntry(text: String): KtSuperTypeCallEntry {
|
||||
return createClass("class A: $text").getSuperTypeListEntries().first() as KtSuperTypeCallEntry
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user