aboutsummaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 17:48:40 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 17:48:40 +0400
commite0acbb5fb51cbeca78bc14aaaddd770d0896d2bb (patch)
tree793292b34c7487f45cb28e0efe7506f805e47779 /src/Model
parenta77f01b4308945e44d05e7e05dc242512e5132eb (diff)
downloaddokka-e0acbb5fb51cbeca78bc14aaaddd770d0896d2bb.tar.gz
dokka-e0acbb5fb51cbeca78bc14aaaddd770d0896d2bb.tar.bz2
dokka-e0acbb5fb51cbeca78bc14aaaddd770d0896d2bb.zip
Add modifiers to signature generation
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/Diagnostics.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Model/Diagnostics.kt b/src/Model/Diagnostics.kt
index 129f23b6..899ff7de 100644
--- a/src/Model/Diagnostics.kt
+++ b/src/Model/Diagnostics.kt
@@ -12,6 +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.Modifier -> continue // do not resolve modifiers
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()