aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Model/DocumentationNode.kt
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-12-07 02:11:15 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-12-07 02:11:15 +0000
commit1ad7cb605dfb17398c17f882f6119991770aa434 (patch)
treebcf74e351e509e16d04c9161307f9944ebc11be1 /core/src/main/kotlin/Model/DocumentationNode.kt
parent1561cf03a908b651be77ab3adc54d8672bb7d852 (diff)
parent2cb80150c4bcdcd31dc10a82ef5a17f7a73a0ee5 (diff)
downloaddokka-1ad7cb605dfb17398c17f882f6119991770aa434.tar.gz
Change-Id: Ia9204f0949a2b2ccf104e7f371830463503d6bc6
Diffstat (limited to 'core/src/main/kotlin/Model/DocumentationNode.kt')
-rw-r--r--core/src/main/kotlin/Model/DocumentationNode.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/kotlin/Model/DocumentationNode.kt b/core/src/main/kotlin/Model/DocumentationNode.kt
index c84d4169d..7ac6d8f4a 100644
--- a/core/src/main/kotlin/Model/DocumentationNode.kt
+++ b/core/src/main/kotlin/Model/DocumentationNode.kt
@@ -64,6 +64,7 @@ enum class NodeKind {
AttributeRef,
ApiLevel,
+ SdkExtSince,
DeprecatedLevel,
@@ -120,6 +121,8 @@ open class DocumentationNode(val name: String,
get() = references(RefKind.ExternalType).map { it.to }.firstOrNull()
val apiLevel: DocumentationNode
get() = detailOrNull(NodeKind.ApiLevel) ?: DocumentationNode("", Content.Empty, NodeKind.ApiLevel)
+ val sdkExtSince: DocumentationNode
+ get() = detailOrNull(NodeKind.SdkExtSince) ?: DocumentationNode("", Content.Empty, NodeKind.SdkExtSince)
val deprecatedLevel: DocumentationNode
get() = detailOrNull(NodeKind.DeprecatedLevel) ?: DocumentationNode("", Content.Empty, NodeKind.DeprecatedLevel)
val artifactId: DocumentationNode