diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-14 15:00:33 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-14 15:00:33 +0400 |
commit | a0bfdbd8cc365cb11c26e81ee7587f0ec25df79d (patch) | |
tree | c68610d2003d2a4712b3fbc95561ac20390a161d /src/Analysis | |
parent | 6168541bd5bb141c40a1e2a909afa84441b35ed5 (diff) | |
download | dokka-a0bfdbd8cc365cb11c26e81ee7587f0ec25df79d.tar.gz dokka-a0bfdbd8cc365cb11c26e81ee7587f0ec25df79d.tar.bz2 dokka-a0bfdbd8cc365cb11c26e81ee7587f0ec25df79d.zip |
Location services, formatting services, initial self-documentation output.
Diffstat (limited to 'src/Analysis')
-rw-r--r-- | src/Analysis/CommentsAPI.kt | 2 | ||||
-rw-r--r-- | src/Analysis/CompilerAPI.kt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Analysis/CommentsAPI.kt b/src/Analysis/CommentsAPI.kt index a1823740..5df4bd38 100644 --- a/src/Analysis/CommentsAPI.kt +++ b/src/Analysis/CommentsAPI.kt @@ -26,7 +26,7 @@ fun KDoc?.extractText(): String { return "" val lines = text.replace("\r", "").split("\n") return lines.map { - val comment = it.trim().dropWhile { it == '/' || it == '*'} + val comment = it.trim().dropWhile { it == '/' || it == '*' } (if (comment.endsWith("*/")) comment.substring(0, comment.length - 2) else diff --git a/src/Analysis/CompilerAPI.kt b/src/Analysis/CompilerAPI.kt index a9dc3b0c..bc0e6e93 100644 --- a/src/Analysis/CompilerAPI.kt +++ b/src/Analysis/CompilerAPI.kt @@ -66,7 +66,7 @@ fun DeclarationDescriptor.isUserCode() = public fun getPackageInnerScope(descriptor: PackageFragmentDescriptor): JetScope { val module = descriptor.getContainingDeclaration() val packageScope = ChainedScope(descriptor, "Package ${descriptor.getName()} scope", descriptor.getMemberScope(), - module.getPackage(FqName.ROOT)!!.getMemberScope()) + module.getPackage(FqName.ROOT)!!.getMemberScope()) return packageScope } |