diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-09-19 22:35:10 +0300 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-09-19 22:35:10 +0300 |
commit | 3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871 (patch) | |
tree | a1a5210da09fd0839755fa43005a9eac3640b772 /src/Languages | |
parent | 54dee60b9cde7fc1fd808b19bc922e235fd90c04 (diff) | |
download | dokka-3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871.tar.gz dokka-3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871.tar.bz2 dokka-3f45f3ac53bad19de9ca0a07d9cf8c7f6f003871.zip |
Review and fixes.
Diffstat (limited to 'src/Languages')
-rw-r--r-- | src/Languages/JavaLanguageService.kt | 4 | ||||
-rw-r--r-- | src/Languages/KotlinLanguageService.kt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Languages/JavaLanguageService.kt b/src/Languages/JavaLanguageService.kt index 8cc185f4..f5976ea9 100644 --- a/src/Languages/JavaLanguageService.kt +++ b/src/Languages/JavaLanguageService.kt @@ -116,7 +116,7 @@ class JavaLanguageService : LanguageService { else -> throw IllegalArgumentException("Node $node is not a function-like object") } - val receiver = node.details(Kind.Receiver).firstOrNull() // TODO: replace with singleOrNull when fixed + val receiver = node.details(Kind.Receiver).singleOrNull() append("(") if (receiver != null) append((listOf(receiver) + node.details(Kind.Parameter)).map { renderParameter(it) }.join()) @@ -134,7 +134,7 @@ class JavaLanguageService : 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(".") 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(".") |