New Intention Action: Replace a call to forEach function with for loop.

Replaces an expression of form x.forEach { … } with for (a in x) { … }.
This commit is contained in:
Pradyoth Kukkapalli
2014-04-07 11:47:58 -04:00
committed by Mikhael Bogdanov
parent bd056d037f
commit dbb28c571b
26 changed files with 330 additions and 2 deletions
@@ -412,6 +412,7 @@ fun main(args: Array<String>) {
model("intentions/convertIfToAssert", testMethod = "doTestConvertIfWithThrowToAssertIntention")
model("intentions/makeTypeExplicitInLambda", testMethod = "doTestMakeTypeExplicitInLambda")
model("intentions/makeTypeImplicitInLambda", testMethod = "doTestMakeTypeImplicitInLambda")
model("intentions/convertToForEachLoop", testMethod = "doTestConvertToForEachLoop")
}
testClass(javaClass<AbstractJetInspectionTest>()) {