aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/parsers/moduleAndPackage/parseModuleAndPackageDocumentation.kt
blob: a2876308927fefe53caae111e88f2550a2b7c248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@file:Suppress("FunctionName")

package org.jetbrains.dokka.base.parsers.moduleAndPackage

internal fun parseModuleAndPackageDocumentation(
    context: ModuleAndPackageDocumentationParsingContext,
    fragment: ModuleAndPackageDocumentationFragment
): ModuleAndPackageDocumentation {
    return ModuleAndPackageDocumentation(
        name = fragment.name,
        classifier = fragment.classifier,
        documentation = context.parse(fragment)
    )
}