aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Diagnostics.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 18:29:20 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 18:29:20 +0400
commit6168541bd5bb141c40a1e2a909afa84441b35ed5 (patch)
treec6bf390f321039b2a68905db2f7f8230b2eacbea /src/Model/Diagnostics.kt
parenta6c9bfb98b1b298e125d69cc0854fcc94259ad59 (diff)
downloaddokka-6168541bd5bb141c40a1e2a909afa84441b35ed5.tar.gz
dokka-6168541bd5bb141c40a1e2a909afa84441b35ed5.tar.bz2
dokka-6168541bd5bb141c40a1e2a909afa84441b35ed5.zip
Support enums in model
Diffstat (limited to 'src/Model/Diagnostics.kt')
-rw-r--r--src/Model/Diagnostics.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Model/Diagnostics.kt b/src/Model/Diagnostics.kt
index 899ff7de..a464107f 100644
--- a/src/Model/Diagnostics.kt
+++ b/src/Model/Diagnostics.kt
@@ -12,8 +12,8 @@ fun BindingContext.checkResolveChildren(node : DocumentationNode) {
for (item in node.details + node.members) {
val symbolName = item.name
val symbol: DeclarationDescriptor? = when (item.kind) {
- DocumentationNode.Kind.Modifier -> continue // do not resolve modifiers
- DocumentationNode.Kind.Receiver -> (parentScope.getContainingDeclaration() as CallableDescriptor).getReceiverParameter()
+ DocumentationNode.Kind.Modifier -> continue // do not resolve modifiers, they are not names
+ DocumentationNode.Kind.Receiver -> continue // what is receiver's name in platform?
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()