aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authoririna-turova <31963497+irina-turova@users.noreply.github.com>2023-05-31 16:16:10 +0500
committerGitHub <noreply@github.com>2023-05-31 13:16:10 +0200
commitf45750699d089e0101dcde5d38c7e08ec2f03708 (patch)
tree13a59ca4458374731e92766f70a1f2183a4ba368 /plugins/base/src/main/kotlin
parent0cad056d84bf1dbe285ca008be17ca5fbb224818 (diff)
downloaddokka-f45750699d089e0101dcde5d38c7e08ec2f03708.tar.gz
dokka-f45750699d089e0101dcde5d38c7e08ec2f03708.tar.bz2
dokka-f45750699d089e0101dcde5d38c7e08ec2f03708.zip
Add support for `@author`, `@since`, `@return` Javadoc tags (#2967)
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt9
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/parsers/JavadocTag.kt2
2 files changed, 10 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt
index 4af8c790..59c6f702 100644
--- a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocParser.kt
@@ -168,6 +168,15 @@ class JavadocParser(
)
)
+ JavadocTag.SINCE -> Since(
+ wrapTagIfNecessary(
+ convertJavadocElements(
+ tag.contentElementsWithSiblingIfNeeded(),
+ context = resolutionContext
+ )
+ )
+ )
+
else -> emptyTagWrapper(tag, docComment)
}
}
diff --git a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocTag.kt b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocTag.kt
index 747e2efe..5b3be7e3 100644
--- a/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocTag.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/parsers/JavadocTag.kt
@@ -1,7 +1,7 @@
package org.jetbrains.dokka.base.translators.psi.parsers
internal enum class JavadocTag {
- PARAM, THROWS, RETURN, AUTHOR, SEE, DEPRECATED, EXCEPTION, HIDE,
+ PARAM, THROWS, RETURN, AUTHOR, SEE, DEPRECATED, EXCEPTION, HIDE, SINCE,
/**
* Artificial tag created to handle tag-less section