Home
last modified time | relevance | path

Searched refs:DocumentationNode (Results 1 – 25 of 40) sorted by relevance

12

/external/dokka/core/src/main/kotlin/Model/
DDocumentationNode.kt80 open class DocumentationNode(val name: String, class
91 val owner: DocumentationNode?
93 val details: List<DocumentationNode>
95 val members: List<DocumentationNode>
97 val inheritedMembers: List<DocumentationNode>
99 val allInheritedMembers: List<DocumentationNode>
101 val inheritedCompanionObjectMembers: List<DocumentationNode>
103 val extensions: List<DocumentationNode>
105 val inheritors: List<DocumentationNode>
107 val overrides: List<DocumentationNode>
[all …]
DDocumentationReference.kt27 data class DocumentationReference(val from: DocumentationNode, val to: DocumentationNode, val kind:…
30 class PendingDocumentationReference(val lazyNodeFrom: () -> DocumentationNode?,
31 val lazyNodeTo: () -> DocumentationNode?,
43 private val nodeMap = hashMapOf<String, DocumentationNode>()
46 fun register(signature: String, node: DocumentationNode) { in register()
50 fun link(fromNode: DocumentationNode, toSignature: String, kind: RefKind) { in link()
54 fun link(fromSignature: String, toNode: DocumentationNode, kind: RefKind) { in link()
64 fun lookupOrWarn(signature: String, logger: DokkaLogger): DocumentationNode? { in lookup()
79 private val platformNodes = hashMapOf<String, DocumentationNode>()
81 operator fun get(platform: String): DocumentationNode { in get()
[all …]
/external/dokka/core/src/main/kotlin/Formats/
DDacOutlineService.kt11 fun computeOutlineURI(node: DocumentationNode): URI in <lambda>()
12 fun format(to: Appendable, node: DocumentationNode) in <lambda>()
25 …ide fun generateOutlines(outputProvider: (URI) -> Appendable, nodes: Iterable<DocumentationNode>) { in generateOutlines()
47 …override fun computeOutlineURI(node: DocumentationNode): URI = uriProvider.outlineRootUri(node).re… in computeOutlineURI()
49 override fun format(to: Appendable, node: DocumentationNode) { in computeOutlineURI()
56 fun appendOutline(to: Appendable, nodes: Iterable<DocumentationNode>) { in appendOutline()
73 fun appendOutlineHeader(node: DocumentationNode, to: Appendable) { in appendOutlineHeader()
103 …override fun computeOutlineURI(node: DocumentationNode): URI = uriProvider.outlineRootUri(node).re… in computeOutlineURI()
105 override fun format(to: Appendable, node: DocumentationNode) { in computeOutlineURI()
112 fun appendOutline(to: Appendable, nodes: Iterable<DocumentationNode>) { in appendOutline()
[all …]
DStructuredFormatService.kt15 protected fun DocumentationNode.location() = generator.location(this) in <lambda>() method
201 open fun link(from: DocumentationNode, in <lambda>()
202 to: DocumentationNode, in <lambda>()
203 …name: (DocumentationNode) -> String = DocumentationNode::name): FormatLink = link(from, to, extens… in <lambda>()
205 open fun link(from: DocumentationNode, in <lambda>()
206 to: DocumentationNode, in <lambda>()
208 name: (DocumentationNode) -> String = DocumentationNode::name): FormatLink { in <lambda>()
218 fun locationHref(from: Location, to: DocumentationNode): String { in <lambda>()
227 private fun DocumentationNode.isModuleOrPackage(): Boolean = in <lambda>() method
271 …open inner class PageBuilder(val nodes: Iterable<DocumentationNode>, val noHeader: Boolean = false… in <lambda>()
[all …]
DDacHtmlFormat.kt49 …override fun createOutputBuilder(output: Appendable, node: DocumentationNode): JavaLayoutHtmlForma… in createOutputBuilder()
66 override fun FlowContent.fullMemberDocs(node: DocumentationNode) { in fullMemberDocs()
70 override fun FlowContent.fullMemberDocs(node: DocumentationNode, uriNode: DocumentationNode) { in fullMemberDocs()
231 override fun summary(node: DocumentationNode) = node.firstSentenceOfSummary() in summary()
233 fun TBODY.xmlAttributeRow(attr: DocumentationNode) = tr { in summary()
247 attributes: List<DocumentationNode>, in FlowContent()
559 private fun TBODY.inheritedXmlAttributeRow(inheritedMember: DocumentationNode) { in TBODY()
576 private fun TBODY.inheritedMemberRow(inheritedMember: DocumentationNode) { in inheritedMemberRow()
606 superClasses: Set<Map.Entry<DocumentationNode, List<DocumentationNode>>>, in expandableSummaryNodeGroupForInheritedMembers()
607 row: TBODY.(inheritedMember: DocumentationNode) -> Unit in expandableSummaryNodeGroupForInheritedMembers()
[all …]
DOutlineService.kt11 fun appendOutlineHeader(location: Location, node: DocumentationNode, to: StringBuilder) in getOutlineFileName()
15 fun appendOutline(location: Location, to: StringBuilder, nodes: Iterable<DocumentationNode>) { in getOutlineFileName()
27 fun formatOutline(location: Location, nodes: Iterable<DocumentationNode>): String = in formatOutline()
DHtmlFormatService.kt81 override fun appendNodes(nodes: Iterable<DocumentationNode>) { in <lambda>()
109 …ride fun appendOutline(location: Location, to: StringBuilder, nodes: Iterable<DocumentationNode>) { in createOutputBuilder()
119 … override fun appendOutlineHeader(location: Location, node: DocumentationNode, to: StringBuilder) { in appendOutlineHeader()
134 fun getPageTitle(nodes: Iterable<DocumentationNode>): String? { in getPageTitle()
139 fun formatPageTitle(node: DocumentationNode): String { in formatPageTitle()
150 private fun qualifiedNameForPageTitle(node: DocumentationNode): String { in qualifiedNameForPageTitle()
/external/dokka/core/src/main/kotlin/Languages/
DJavaLanguageService.kt10 override fun render(node: DocumentationNode, renderMode: RenderMode): ContentNode { in <lambda>()
26 override fun renderName(node: DocumentationNode): String { in <lambda>()
33 override fun renderNameWithOuterClass(node: DocumentationNode): String { in <lambda>()
40 override fun summarizeSignatures(nodes: List<DocumentationNode>): ContentNode? = null in <lambda>()
42 private fun renderPackage(node: DocumentationNode): String { in <lambda>()
46 private fun renderModifier(node: DocumentationNode): String { in <lambda>()
54 …fun getArrayElementType(node: DocumentationNode): DocumentationNode? = when (node.qualifiedName())… in <lambda>()
57 DocumentationNode("Object", node.content, NodeKind.ExternalClass) in <lambda>()
61DocumentationNode(node.name.removeSuffix("Array").toLowerCase(), node.content, NodeKind.Type) in <lambda>()
66 fun getArrayDimension(node: DocumentationNode): Int = when (node.qualifiedName()) { in <lambda>()
[all …]
DNewJavaLanguageService.kt10 override fun showModifierInSummary(node: DocumentationNode): Boolean { in <lambda>()
16 override fun render(node: DocumentationNode, renderMode: RenderMode): ContentNode { in <lambda>()
37 override fun summarizeSignatures(nodes: List<DocumentationNode>): ContentNode? = null in <lambda>()
40 …override fun renderModifier(block: ContentBlock, node: DocumentationNode, renderMode: RenderMode, … in <lambda>()
52 …fun getArrayElementType(node: DocumentationNode): DocumentationNode? = when (node.qualifiedName())… in <lambda>()
55 ?: DocumentationNode("Object", node.content, NodeKind.ExternalClass) in <lambda>()
59DocumentationNode(node.name.removeSuffix("Array").toLowerCase(), node.content, NodeKind.Type) in <lambda>()
64 fun getArrayDimension(node: DocumentationNode): Int = when (node.qualifiedName()) { in <lambda>()
74 fun ContentBlock.renderType(node: DocumentationNode) { in <lambda>()
96 private fun ContentBlock.renderTypeParameter(node: DocumentationNode) { in <lambda>()
[all …]
DCommonLanguageService.kt8 protected fun ContentBlock.renderPackage(node: DocumentationNode) { in ContentBlock()
14 override fun renderName(node: DocumentationNode): String { in renderName()
21 override fun renderNameWithOuterClass(node: DocumentationNode): String { in renderNameWithOuterClass()
30 node: DocumentationNode, in renderModifier()
44 node: DocumentationNode, in renderLinked()
45 body: ContentBlock.(DocumentationNode) -> Unit in renderLinked()
99 abstract fun showModifierInSummary(node: DocumentationNode): Boolean in showModifierInSummary()
102 node: DocumentationNode, in showModifierInSummary()
DLanguageService.kt19 fun render(node: DocumentationNode, renderMode: RenderMode = RenderMode.FULL): ContentNode in render()
25 fun summarizeSignatures(nodes: List<DocumentationNode>): ContentNode? in render()
36 fun renderName(node: DocumentationNode): String in render()
38 fun renderNameWithOuterClass(node: DocumentationNode): String in render()
41 fun example(service: LanguageService, node: DocumentationNode) { in render()
/external/dokka/core/src/main/kotlin/Formats/JavaLayoutHtml/
DJavaLayoutHtmlFormatOutputBuilder.kt45 protected fun FlowContent.nodeContent(node: DocumentationNode, uriNode: DocumentationNode) = in <lambda>()
48 protected fun FlowContent.nodeContent(node: DocumentationNode) = in <lambda>()
216 protected open fun summary(node: DocumentationNode) = node.summary in <lambda>()
218 protected open fun TBODY.classLikeRow(node: DocumentationNode) = tr { in <lambda>()
223 protected fun FlowContent.modifiers(node: DocumentationNode) { in <lambda>()
229 protected fun FlowContent.shortFunctionParametersList(func: DocumentationNode) { in <lambda>()
241 protected open fun TBODY.functionLikeSummaryRow(node: DocumentationNode) = tr { in <lambda>()
265 …protected open fun TBODY.propertyLikeSummaryRow(node: DocumentationNode, showSignature: Boolean = … in <lambda>()
283 protected open fun TBODY.nestedClassSummaryRow(node: DocumentationNode) = tr { in <lambda>()
298 protected fun HtmlBlockTag.nodeSummary(node: DocumentationNode, uriNode: DocumentationNode) { in <lambda>()
[all …]
DJavaLayoutHtmlFormat.kt51 fun generateOutlines(outputProvider: (URI) -> Appendable, nodes: Iterable<DocumentationNode>) in generateOutlines()
56 fun tryGetContainerUri(node: DocumentationNode): URI? in generateOutlines()
57 fun tryGetMainUri(node: DocumentationNode): URI? in generateOutlines()
58 fun tryGetOutlineRootUri(node: DocumentationNode): URI? in generateOutlines()
59 …fun containerUri(node: DocumentationNode): URI = tryGetContainerUri(node) ?: error("Unsupported ${… in generateOutlines()
60 …fun mainUri(node: DocumentationNode): URI = tryGetMainUri(node) ?: error("Unsupported ${node.kind}… in generateOutlines()
61 …fun outlineRootUri(node: DocumentationNode): URI = tryGetOutlineRootUri(node) ?: error("Unsupporte… in generateOutlines()
64 fun linkTo(to: DocumentationNode, from: URI): String { in generateOutlines()
68 fun linkToFromOutline(to: DocumentationNode, from: URI): String { in generateOutlines()
72 fun mainUriOrWarn(node: DocumentationNode): URI? = tryGetMainUri(node) ?: (null).also { in generateOutlines()
[all …]
DJavaLayoutHtmlGenerator.kt25 …fun createOutputBuilderForNode(node: DocumentationNode, output: Appendable) = outputBuilderFactory… in <lambda>()
27 fun DocumentationNode.getOwnerOrReport() = owner ?: run { in <lambda>() method
31 override fun tryGetContainerUri(node: DocumentationNode): URI? { in <lambda>()
41 override fun tryGetMainUri(node: DocumentationNode): URI? { in <lambda>()
64 override fun tryGetOutlineRootUri(node: DocumentationNode): URI? { in <lambda>()
71 …fun URI.resolveInPage(node: DocumentationNode): URI = resolve("#${node.signatureForAnchor(logger).… in <lambda>()
73 fun buildClass(node: DocumentationNode, parentDir: File) { in <lambda>()
83 fun buildPackage(node: DocumentationNode, parentDir: File) { in <lambda>()
101 fun buildClassIndex(node: DocumentationNode, parentDir: File) { in <lambda>()
108 …fun buildPackageIndex(module: DocumentationNode, nodes: List<DocumentationNode>, parentDir: File) { in <lambda>()
[all …]
/external/dokka/core/src/main/kotlin/Generation/
DGenerator.kt6 fun buildPages(nodes: Iterable<DocumentationNode>) in buildPages()
7 fun buildOutlines(nodes: Iterable<DocumentationNode>) in buildPages()
9 fun buildPackageList(nodes: Iterable<DocumentationNode>) in buildPages()
12 fun Generator.buildAll(nodes: Iterable<DocumentationNode>) { in buildPages()
19 fun Generator.buildPage(node: DocumentationNode): Unit = buildPages(listOf(node)) in buildPage()
21 fun Generator.buildOutline(node: DocumentationNode): Unit = buildOutlines(listOf(node)) in buildPage()
23 fun Generator.buildAll(node: DocumentationNode): Unit = buildAll(listOf(node)) in buildPage()
27 fun location(node: DocumentationNode): Location in buildPage()
DFileGenerator.kt18 override fun location(node: DocumentationNode): FileLocation { in <lambda>()
22 private fun fileForNode(node: DocumentationNode, extension: String = ""): File { in <lambda>()
26 fun locationWithoutExtension(node: DocumentationNode): FileLocation { in <lambda>()
30 override fun buildPages(nodes: Iterable<DocumentationNode>) { in <lambda>()
48 override fun buildOutlines(nodes: Iterable<DocumentationNode>) { in <lambda>()
69 override fun buildPackageList(nodes: Iterable<DocumentationNode>) { in <lambda>()
/external/dokka/core/src/main/kotlin/Kotlin/
DKotlinLanguageService.kt10 override fun showModifierInSummary(node: DocumentationNode): Boolean { in <lambda>()
17 override fun render(node: DocumentationNode, renderMode: RenderMode): ContentNode { in <lambda>()
43 override fun summarizeSignatures(nodes: List<DocumentationNode>): ContentNode? { in <lambda>()
65 private fun List<DocumentationNode>.getReceiverKind(): ReceiverKind? { in <lambda>()
73 private fun DocumentationNode.getReceiverQName(): String? { in <lambda>() method
111 fun renderReceiver(receiver: DocumentationNode, to: ContentBlock) in <lambda>()
115 override fun renderReceiver(receiver: DocumentationNode, to: ContentBlock) { in <lambda>()
121 …private fun ContentBlock.renderFunctionalTypeParameterName(node: DocumentationNode, renderMode: Re… in <lambda>()
131 private fun ContentBlock.renderFunctionalType(node: DocumentationNode, renderMode: RenderMode) { in <lambda>()
158 private fun DocumentationNode.isFunctionalType(): Boolean { in <lambda>() method
[all …]
DDocumentationBuilder.kt112 packageNode: DocumentationNode, in buildPackageDocumentation()
142 fun link(node: DocumentationNode, descriptor: DeclarationDescriptor, kind: RefKind) { in link()
152 fun register(descriptor: DeclarationDescriptor, node: DocumentationNode) { in register()
160 ): DocumentationNode where T : DeclarationDescriptor, T : Named { in nodeForDescriptor()
170 … val node = DocumentationNode(descriptor.name.asString(), doc, kind).withModifiers(descriptor) in nodeForDescriptor()
176 …private fun DocumentationNode.withModifiers(descriptor: DeclarationDescriptor): DocumentationNode { in withModifiers() method
186 fun DocumentationNode.appendModality(descriptor: MemberDescriptor) { in appendModality() method
198 fun DocumentationNode.appendVisibility(descriptor: DeclarationDescriptorWithVisibility) { in appendVisibility() method
203 …fun DocumentationNode.appendSupertype(descriptor: ClassDescriptor, superType: KotlinType, backref:… in appendSupertype() method
217 …fun DocumentationNode.appendProjection(projection: TypeProjection, kind: NodeKind = NodeKind.Type)… in appendProjection() method
[all …]
DDescriptorDocumentationParser.kt54 …ptor: DeclarationDescriptor, inline: Boolean = false): Pair<Content, (DocumentationNode) -> Unit> { in <lambda>()
137 …private fun DocumentationNode.addExtraTags(tags: Array<KDocTag>, descriptor: DeclarationDescriptor… in <lambda>() method
143 val apiLevel = DocumentationNode(it.getContent(), Content.Empty, NodeKind.ApiLevel) in <lambda>()
146 … val deprecatedLevel = DocumentationNode(it.getContent(), Content.Empty, NodeKind.DeprecatedLevel) in <lambda>()
149 … val artifactId = DocumentationNode(it.getContent(), Content.Empty, NodeKind.ArtifactId) in <lambda>()
194 … fun parseJavadoc(descriptor: DeclarationDescriptor): Pair<Content, (DocumentationNode) -> Unit> { in <lambda>()
205 val deprecationNode = DocumentationNode("", it, NodeKind.Modifier) in <lambda>()
213 …refGraph.register(classAttrSignature, DocumentationNode(node.name, Content.Empty, NodeKind.Attribu… in <lambda>()
263 private fun KDocTag.getAttr(descriptor: DeclarationDescriptor): DocumentationNode? { in <lambda>()
264 var attribute: DocumentationNode? = null in <lambda>()
[all …]
/external/dokka/core/src/main/kotlin/Java/
DJavaPsiDocumentationBuilder.kt87 fun appendClasses(packageNode: DocumentationNode, classes: Array<PsiClass>) { in appendFile()
91 fun register(element: PsiElement, node: DocumentationNode) { in appendFile()
98 fun link(node: DocumentationNode, element: PsiElement?) { in appendFile()
105 fun link(element: PsiElement?, node: DocumentationNode, kind: RefKind) { in appendFile()
114 name: String = element.name ?: "<anonymous>"): DocumentationNode { in appendFile()
116 val node = DocumentationNode(name, docComment, kind) in appendFile()
133 val deprecationNode = DocumentationNode("", deprecatedContent, NodeKind.Modifier) in appendFile()
137 …val deprecationNode = DocumentationNode("", Content.of(ContentText("Deprecated")), NodeKind.Modifi… in appendFile()
165 fun <T : Any> DocumentationNode.appendChildren(elements: Array<T>, in appendFile()
167 buildFn: T.() -> DocumentationNode) { in appendFile()
[all …]
DJavadocParser.kt27 val apiLevel: DocumentationNode? = null, in <lambda>()
28 val deprecatedLevel: DocumentationNode? = null, in <lambda>()
29 val artifactId: DocumentationNode? = null, in <lambda>()
30 val attribute: DocumentationNode? = null in <lambda>()
56 selector: (DocumentationNode) -> DocumentationNode? in parseDocumentation()
111 var since: DocumentationNode? = null in parseDocumentation()
112 var deprecated: DocumentationNode? = null in parseDocumentation()
113 var artifactId: DocumentationNode? = null in parseDocumentation()
116 var attr: DocumentationNode? = null in parseDocumentation()
136 … since = DocumentationNode(tag.getApiLevel() ?: "", Content.Empty, NodeKind.ApiLevel) in parseDocumentation()
[all …]
/external/dokka/core/src/main/kotlin/javadoc/
Ddocbase.kt14 val node: DocumentationNode
17 open class DocumentationNodeBareAdapter(override val node: DocumentationNode) : Doc, HasDocumentati…
63 open class DocumentationNodeAdapter(override val module: ModuleNodeAdapter, node: DocumentationNode in equals()
89 private fun DocumentationNode.hasAnnotation(klass: KClass<*>) = klass.qualifiedName in annotations.… in <lambda>() method
90 private fun DocumentationNode.hasModifier(name: String) = details(NodeKind.Modifier).any { it.name … in <lambda>() method
93 class PackageAdapter(module: ModuleNodeAdapter, node: DocumentationNode) : DocumentationNodeAdapter…
112 class AnnotationTypeDocAdapter(module: ModuleNodeAdapter, node: DocumentationNode) : ClassDocumenta… in allClasses()
116 class AnnotationDescAdapter(val module: ModuleNodeAdapter, val node: DocumentationNode) : Annotatio…
122 open class ProgramElementAdapter(module: ModuleNodeAdapter, node: DocumentationNode) : Documentatio… in annotationType()
139 var owner: DocumentationNode? = node in annotationType()
[all …]
Ddokka-adapters.kt13 override fun buildPages(nodes: Iterable<DocumentationNode>) { in buildPages()
19 override fun buildOutlines(nodes: Iterable<DocumentationNode>) { in buildOutlines()
26 override fun buildPackageList(nodes: Iterable<DocumentationNode>) { in buildPackageList()
/external/dokka/core/src/test/kotlin/format/
DJavaLayoutHtmlFormatTestCase.kt7 import org.jetbrains.dokka.DocumentationNode in <lambda>()
64 …protected fun buildPagesAndReadInto(model: DocumentationNode, nodes: List<DocumentationNode>, sb: … in <lambda>()
80 select: (model: DocumentationNode) -> List<DocumentationNode> in <lambda>()
/external/dokka/core/src/main/kotlin/Locations/
DLocation.kt44 fun relativePathToNode(node: DocumentationNode) = relativePathToNode(node.path.map { it.name }, nod… in <lambda>()
52 …deLocationAwareGenerator.relativePathToLocation(owner: DocumentationNode, node: DocumentationNode)… in relativePathToLocation()

12