diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 17:11:35 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 17:11:35 +0400 |
commit | 044e1b86602662c78bb2ed12b9d645ab10b23429 (patch) | |
tree | 91ca7ece2011b71fa10d0b184ccfa234fbe3130d /src/main.kt | |
parent | 9fec3e15c94969f98596ac04130af6e2d9368a89 (diff) | |
download | dokka-044e1b86602662c78bb2ed12b9d645ab10b23429.tar.gz dokka-044e1b86602662c78bb2ed12b9d645ab10b23429.tar.bz2 dokka-044e1b86602662c78bb2ed12b9d645ab10b23429.zip |
Setup test framework and empty DocumentationModel to kickstart test development.
Diffstat (limited to 'src/main.kt')
-rw-r--r-- | src/main.kt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.kt b/src/main.kt index 3083ba90..04415070 100644 --- a/src/main.kt +++ b/src/main.kt @@ -13,10 +13,11 @@ public fun main(args: Array<String>) { val compilerArguments = K2JVMCompilerArguments() val sources: List<String> = Args.parse(compilerArguments, args) ?: listOf() - val environment = AnalysisEnvironment(MessageCollectorPlainTextToStream.PLAIN_TEXT_TO_SYSTEM_ERR) { + val environment = AnalysesEnvironment(MessageCollectorPlainTextToStream.PLAIN_TEXT_TO_SYSTEM_ERR) { +/* addClasspath(PathUtil.getJdkClassesRoots()) addClasspath(PathUtil.getKotlinPathsForCompiler().getRuntimePath()) - +*/ addSources(sources) } @@ -52,9 +53,9 @@ fun BindingContext.analyseFile(file: JetFile) { println("Package: ${packageFragment}") for (descriptor in packageFragment.getMemberScope().getAllDescriptors()) { println("Member: ${descriptor}") - val doc = getComments(descriptor) + val doc = getDocumentation(descriptor) if (doc != null) { - println("Comment: ${doc.getText()}") + println("Comment:\n${doc.getText()}") } println() } |