Suggest to replace manual range with explicit indices or iterable
#KT-14344 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
8cda5cb849
commit
3451c60f93
@@ -357,6 +357,10 @@ class KtPsiFactory @JvmOverloads constructor(private val project: Project, val m
|
||||
return createClass("class A($text)").primaryConstructorParameters.first()
|
||||
}
|
||||
|
||||
fun createLoopParameter(text: String): KtParameter {
|
||||
return (createExpression("for ($text in list) {}") as KtForExpression).loopParameter!!
|
||||
}
|
||||
|
||||
fun createParameterList(text: String): KtParameterList {
|
||||
return createFunction("fun foo$text{}").valueParameterList!!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user