aboutsummaryrefslogtreecommitdiff
path: root/src/main.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.kt')
-rw-r--r--src/main.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.kt b/src/main.kt
index 8b550999..3083ba90 100644
--- a/src/main.kt
+++ b/src/main.kt
@@ -52,5 +52,10 @@ fun BindingContext.analyseFile(file: JetFile) {
println("Package: ${packageFragment}")
for (descriptor in packageFragment.getMemberScope().getAllDescriptors()) {
println("Member: ${descriptor}")
+ val doc = getComments(descriptor)
+ if (doc != null) {
+ println("Comment: ${doc.getText()}")
+ }
+ println()
}
}