aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Model/DocumentationBuilder.kt2
-rw-r--r--src/main.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Model/DocumentationBuilder.kt b/src/Model/DocumentationBuilder.kt
index 08298926..e28d437f 100644
--- a/src/Model/DocumentationBuilder.kt
+++ b/src/Model/DocumentationBuilder.kt
@@ -5,7 +5,7 @@ import org.jetbrains.jet.lang.psi.*
import org.jetbrains.jet.lang.descriptors.*
import org.jetbrains.jet.lang.descriptors.impl.*
-fun BindingContext.createDocumentation(file: JetFile): DocumentationModel {
+fun BindingContext.createSourceModel(file: JetFile): DocumentationModel {
val model = DocumentationModel()
val packageFragment = getPackageFragment(file)
if (packageFragment == null) throw IllegalArgumentException("File $file should have package fragment")
diff --git a/src/main.kt b/src/main.kt
index 79a8bfcb..30c3a737 100644
--- a/src/main.kt
+++ b/src/main.kt
@@ -37,7 +37,7 @@ public fun main(args: Array<String>) {
val model = environment.processFiles { context, file ->
println("Processing: ${file.getName()}")
- context.createDocumentation(file)
+ context.createSourceModel(file)
}.fold(DocumentationModel()) {(aggregate, item) -> aggregate.merge(item) }
ConsoleGenerator().generate(model)