diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 20:14:45 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 20:14:45 +0400 |
commit | 1cb3af902c8f2e3f73e7c78781373f1ab5788772 (patch) | |
tree | 88aaa6a10f0da26d28e9c2792313a2a11cf28356 /src/main.kt | |
parent | efd1947722587d15bf1c81a0fd7ca722a7bc6fa8 (diff) | |
download | dokka-1cb3af902c8f2e3f73e7c78781373f1ab5788772.tar.gz dokka-1cb3af902c8f2e3f73e7c78781373f1ab5788772.tar.bz2 dokka-1cb3af902c8f2e3f73e7c78781373f1ab5788772.zip |
Remove BindingContext and migrate to ResolveSession, discover symbols for {code ...} directive.
Diffstat (limited to 'src/main.kt')
-rw-r--r-- | src/main.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.kt b/src/main.kt index e234a110..e2ea0ce7 100644 --- a/src/main.kt +++ b/src/main.kt @@ -59,7 +59,7 @@ public fun main(args: Array<String>) { println("Analysing sources and libraries... ") val startAnalyse = System.currentTimeMillis() - val documentation = environment.withContext { environment, module, context -> + val documentation = environment.withContext { environment, session -> val fragmentFiles = environment.getSourceFiles().filter { val sourceFile = File(it.getVirtualFile()!!.getPath()) samples.none { sample -> @@ -68,10 +68,10 @@ public fun main(args: Array<String>) { canonicalSource.startsWith(canonicalSample) } } - val fragments = fragmentFiles.map { context.getPackageFragment(it) }.filterNotNull().distinct() + val fragments = fragmentFiles.map { session.getPackageFragment(it.getPackageFqName()) }.filterNotNull().distinct() val documentationModule = DocumentationModule(arguments.moduleName) val options = DocumentationOptions() - val documentationBuilder = DocumentationBuilder(context, options) + val documentationBuilder = DocumentationBuilder(session, options) with(documentationBuilder) { val descriptors = hashMapOf<String, List<DeclarationDescriptor>>() |