-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38e09dd
commit b6a6ca8
Showing
46 changed files
with
2,320 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
plugins/base/src/main/kotlin/transformers/documentables/ClashingDriIdentifier.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package org.jetbrains.dokka.base.transformers.documentables | ||
|
||
@Deprecated( | ||
message = "Declaration was moved to dokka-core", | ||
replaceWith = ReplaceWith("org.jetbrains.dokka.transformers.documentation.ClashingDriIdentifier"), | ||
level = DeprecationLevel.WARNING // TODO change to error after Kotlin 1.9.20 | ||
) | ||
public typealias ClashingDriIdentifier = org.jetbrains.dokka.transformers.documentation.ClashingDriIdentifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...kotlin-api/src/test/kotlin/org/jetbrains/dokka/analysis/test/jvm/java/JavaAnalysisTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package org.jetbrains.dokka.analysis.test.jvm.java | ||
|
||
import org.jetbrains.dokka.analysis.test.api.javaTestProject | ||
import org.jetbrains.dokka.analysis.test.api.parse | ||
import kotlin.test.Test | ||
import kotlin.test.assertEquals | ||
|
||
class JavaAnalysisTest { | ||
|
||
@Test | ||
fun javaTestProject() { | ||
val testProject = javaTestProject { | ||
dokkaConfiguration { | ||
moduleName = "java-module-name-for-unit-test" | ||
} | ||
javaFile(pathFromSrc = "org/jetbrains/dokka/test/java/Bar.java") { | ||
+""" | ||
public class Bar { | ||
public static void bar() { | ||
System.out.println("Bar"); | ||
} | ||
} | ||
""" | ||
} | ||
} | ||
|
||
val module = testProject.parse() | ||
assertEquals("java-module-name-for-unit-test", module.name) | ||
assertEquals(1, module.packages.size) | ||
|
||
val pckg = module.packages[0] | ||
assertEquals("org.jetbrains.dokka.test.java", pckg.name) | ||
assertEquals(1, pckg.classlikes.size) | ||
|
||
val fooClass = pckg.classlikes[0] | ||
assertEquals("Bar", fooClass.name) | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...api/src/test/kotlin/org/jetbrains/dokka/analysis/test/jvm/kotlin/KotlinJvmAnalysisTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
package org.jetbrains.dokka.analysis.test.jvm.kotlin | ||
|
||
import org.jetbrains.dokka.analysis.test.api.kotlinJvmTestProject | ||
import org.jetbrains.dokka.analysis.test.api.parse | ||
import kotlin.test.Test | ||
import kotlin.test.assertEquals | ||
|
||
class KotlinJvmAnalysisTest { | ||
|
||
@Test | ||
fun kotlinJvmTestProject() { | ||
val testProject = kotlinJvmTestProject { | ||
ktFile(pathFromSrc = "org/jetbrains/dokka/test/kotlin/MyFile.kt") { | ||
+"public class Foo {}" | ||
} | ||
} | ||
|
||
val module = testProject.parse() | ||
assertEquals(1, module.packages.size) | ||
|
||
val pckg = module.packages[0] | ||
assertEquals("org.jetbrains.dokka.test.kotlin", pckg.name) | ||
assertEquals(1, pckg.classlikes.size) | ||
|
||
val fooClass = pckg.classlikes[0] | ||
assertEquals("Foo", fooClass.name) | ||
} | ||
} |
Oops, something went wrong.