aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Diagnostics.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 17:19:46 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 17:19:46 +0400
commit1da7b0d28cc101c58e58b4ba00a7ed5890df34f5 (patch)
tree29dc0447b29cd4067f16f5a8c1147b9cd26317dc /src/Model/Diagnostics.kt
parent93c92506101fec7f0cff6b63d7e223ae97f20717 (diff)
downloaddokka-1da7b0d28cc101c58e58b4ba00a7ed5890df34f5.tar.gz
dokka-1da7b0d28cc101c58e58b4ba00a7ed5890df34f5.tar.bz2
dokka-1da7b0d28cc101c58e58b4ba00a7ed5890df34f5.zip
Fix processing properties with receivers.
Diffstat (limited to 'src/Model/Diagnostics.kt')
-rw-r--r--src/Model/Diagnostics.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Model/Diagnostics.kt b/src/Model/Diagnostics.kt
index 470d7973..129f23b6 100644
--- a/src/Model/Diagnostics.kt
+++ b/src/Model/Diagnostics.kt
@@ -12,7 +12,7 @@ fun BindingContext.checkResolveChildren(node : DocumentationNode) {
for (item in node.details + node.members) {
val symbolName = item.name
val symbol: DeclarationDescriptor? = when (item.kind) {
- DocumentationNode.Kind.Receiver -> (parentScope.getContainingDeclaration() as FunctionDescriptor).getReceiverParameter()
+ DocumentationNode.Kind.Receiver -> (parentScope.getContainingDeclaration() as CallableDescriptor).getReceiverParameter()
DocumentationNode.Kind.Parameter -> parentScope.getLocalVariable(Name.guess(symbolName))
DocumentationNode.Kind.Function -> parentScope.getFunctions(Name.guess(symbolName)).firstOrNull()
DocumentationNode.Kind.Property -> parentScope.getProperties(Name.guess(symbolName)).firstOrNull()