Change Signature: Update signatures of lambdas passed to SAM constructors

This commit is contained in:
Alexey Sedunov
2014-11-21 14:00:47 +03:00
parent 8f2c543f7e
commit c9873428de
49 changed files with 654 additions and 85 deletions
@@ -234,6 +234,10 @@ public class JetPsiFactory(private val project: Project) {
return createFunction("fun foo$text{}").getValueParameterList()!!
}
public fun createFunctionLiteralParameterList(text: String): JetParameterList {
return (createExpression("{ $text -> 0}") as JetFunctionLiteralExpression).getFunctionLiteral().getValueParameterList()
}
public fun createEnumEntry(text: String): JetEnumEntry {
return createDeclaration<JetClass>("enum class E {$text}").getDeclarations()[0] as JetEnumEntry
}