diff options
author | Douglas Sigelbaum <sigelbaum@google.com> | 2018-03-02 15:42:20 -0800 |
---|---|---|
committer | Douglas Sigelbaum <sigelbaum@google.com> | 2018-03-02 15:42:20 -0800 |
commit | e45b323e2e3bac34ae1e5e21b25ca7057c147cfe (patch) | |
tree | d60a90735d93264c088020edceb7598985d4d210 /core/src/main/kotlin/Model/DocumentationNode.kt | |
parent | 40f61ce9c23dbce8324d7dbb6b6194c666a06672 (diff) | |
download | dokka-e45b323e2e3bac34ae1e5e21b25ca7057c147cfe.tar.gz |
First attempt at @attr and @since parsing.
Diffstat (limited to 'core/src/main/kotlin/Model/DocumentationNode.kt')
-rw-r--r-- | core/src/main/kotlin/Model/DocumentationNode.kt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/core/src/main/kotlin/Model/DocumentationNode.kt b/core/src/main/kotlin/Model/DocumentationNode.kt index 919a1c180..145d45d26 100644 --- a/core/src/main/kotlin/Model/DocumentationNode.kt +++ b/core/src/main/kotlin/Model/DocumentationNode.kt @@ -59,7 +59,9 @@ enum class NodeKind { */ OverloadGroupNote, - XmlAttribute, + Attribute, + + ApiLevel, GroupNode; @@ -86,8 +88,6 @@ open class DocumentationNode(val name: String, get() = references(RefKind.Detail).map { it.to } val members: List<DocumentationNode> get() = references(RefKind.Member).map { it.to } - val xmlAttributes: List<DocumentationNode> - get() = references(RefKind.Attribute).map { it.to } val inheritedMembers: List<DocumentationNode> get() = references(RefKind.InheritedMember).map { it.to } val inheritedCompanionObjectMembers: List<DocumentationNode> @@ -110,6 +110,10 @@ open class DocumentationNode(val name: String, get() = references(RefKind.Platform).map { it.to.name } val externalType: DocumentationNode? get() = references(RefKind.ExternalType).map { it.to }.firstOrNull() + val attributes: List<DocumentationNode> + get() = references(RefKind.Attribute).map { it.to } + val apiLevel: DocumentationNode? + get() = references(RefKind.AvailableSince).map { it.to }.firstOrNull() val supertypes: List<DocumentationNode> get() = details(NodeKind.Supertype) |