diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 23:47:29 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 23:47:29 +0400 |
commit | 1fc5f504c77e98f80c7f6921e26ca7c9463c8bf3 (patch) | |
tree | 3b55cb9949db0e432051401ba76526494ef95c1a /src/Model/DocumentationBuilder.kt | |
parent | cec0fc9f3eaa5df8fc2654ce90d87b9be48b16c0 (diff) | |
download | dokka-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.kt | 4 |
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 } |