diff options
Diffstat (limited to 'src/Languages')
-rw-r--r-- | src/Languages/KotlinLanguageService.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Languages/KotlinLanguageService.kt b/src/Languages/KotlinLanguageService.kt index 7ae043b0..0b6ae11d 100644 --- a/src/Languages/KotlinLanguageService.kt +++ b/src/Languages/KotlinLanguageService.kt @@ -41,11 +41,11 @@ class KotlinLanguageService : LanguageService { if (node.name == "Function${typeArguments.count() - 1}") { // lambda - return "(${renders.take(renders.size - 1).join()})->${renders.last()}" + return "(${renders.take(renders.size - 1).join()}) -> ${renders.last()}" } if (node.name == "ExtensionFunction${typeArguments.count() - 2}") { // extension lambda - return "${renders.first()}.(${renders.drop(1).take(renders.size - 2).join()})->${renders.last()}" + return "${renders.first()}.(${renders.drop(1).take(renders.size - 2).join()}) -> ${renders.last()}" } if (typeArguments.none()) return node.name |