aboutsummaryrefslogtreecommitdiff
path: root/src/Model/DocumentationBuilder.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-11 23:47:29 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-11 23:47:29 +0400
commit1fc5f504c77e98f80c7f6921e26ca7c9463c8bf3 (patch)
tree3b55cb9949db0e432051401ba76526494ef95c1a /src/Model/DocumentationBuilder.kt
parentcec0fc9f3eaa5df8fc2654ce90d87b9be48b16c0 (diff)
downloaddokka-1fc5f504c77e98f80c7f6921e26ca7c9463c8bf3.tar.gz
dokka-1fc5f504c77e98f80c7f6921e26ca7c9463c8bf3.tar.bz2
dokka-1fc5f504c77e98f80c7f6921e26ca7c9463c8bf3.zip
Create resolution scopes for all entities to resolve names inside doc-comments.
Diffstat (limited to 'src/Model/DocumentationBuilder.kt')
-rw-r--r--src/Model/DocumentationBuilder.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Model/DocumentationBuilder.kt b/src/Model/DocumentationBuilder.kt
index 464a5ab2..353e839e 100644
--- a/src/Model/DocumentationBuilder.kt
+++ b/src/Model/DocumentationBuilder.kt
@@ -6,13 +6,13 @@ import org.jetbrains.jet.lang.descriptors.*
import org.jetbrains.jet.lang.descriptors.impl.*
import org.jetbrains.jet.lang.types.lang.KotlinBuiltIns
-fun BindingContext.createSourceModel(file: JetFile): DocumentationModel {
+fun BindingContext.createDocumentationModel(file: JetFile): DocumentationModel {
val model = DocumentationModel()
val packageFragment = getPackageFragment(file)
if (packageFragment == null) throw IllegalArgumentException("File $file should have package fragment")
val visitor = DocumentationBuilderVisitor(this)
- visitDescriptor(packageFragment, model, visitor)
+ packageFragment.accept(DocumentationBuildingVisitor(this, visitor), model)
return model
}