aboutsummaryrefslogtreecommitdiff
path: root/src/Model/DocumentationBuilder.kt
diff options
context:
space:
mode:
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
}