aboutsummaryrefslogtreecommitdiff
path: root/src/Languages/KotlinLanguageService.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-09-19 22:35:10 +0300
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-09-19 22:35:10 +0300
commit3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871 (patch)
treea1a5210da09fd0839755fa43005a9eac3640b772 /src/Languages/KotlinLanguageService.kt
parent54dee60b9cde7fc1fd808b19bc922e235fd90c04 (diff)
downloaddokka-3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871.tar.gz
dokka-3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871.tar.bz2
dokka-3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871.zip
Review and fixes.
Diffstat (limited to 'src/Languages/KotlinLanguageService.kt')
-rw-r--r--src/Languages/KotlinLanguageService.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Languages/KotlinLanguageService.kt b/src/Languages/KotlinLanguageService.kt
index 0b6ae11d..7307cffb 100644
--- a/src/Languages/KotlinLanguageService.kt
+++ b/src/Languages/KotlinLanguageService.kt
@@ -126,7 +126,7 @@ class KotlinLanguageService : LanguageService {
else -> throw IllegalArgumentException("Node $node is not a function-like object")
}
append(renderTypeParametersForNode(node))
- val receiver = node.details(Kind.Receiver).firstOrNull() // TODO: replace with singleOrNull when fixed
+ val receiver = node.details(Kind.Receiver).singleOrNull()
if (receiver != null) {
append(renderType(receiver.detail(Kind.Type)))
append(".")
@@ -153,7 +153,7 @@ class KotlinLanguageService : LanguageService {
else -> throw IllegalArgumentException("Node $node is not a property")
}
append(renderTypeParametersForNode(node))
- val receiver = node.details(Kind.Receiver).firstOrNull() // TODO: replace with singleOrNull when fixed
+ val receiver = node.details(Kind.Receiver).singleOrNull()
if (receiver != null) {
append(renderType(receiver.detail(Kind.Type)))
append(".")