aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt3
-rw-r--r--plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt14
2 files changed, 14 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt b/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt
index bd09f7b1..75f43324 100644
--- a/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt
+++ b/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt
@@ -42,7 +42,8 @@ class SinceKotlinTransformer(val context: DokkaContext) : DocumentableTransforme
Platform.common to SinceKotlinVersion("1.0"),
Platform.jvm to SinceKotlinVersion("1.0"),
Platform.js to SinceKotlinVersion("1.1"),
- Platform.native to SinceKotlinVersion("1.3")
+ Platform.native to SinceKotlinVersion("1.3"),
+ Platform.wasm to SinceKotlinVersion("1.8"),
)
override fun invoke(original: DModule, context: DokkaContext) = original.transform() as DModule
diff --git a/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt b/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt
index aec7e540..d658b50b 100644
--- a/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt
+++ b/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt
@@ -136,6 +136,10 @@ class SinceKotlinTest : AbstractRenderingTest() {
sourceRoots = listOf("src/")
analysisPlatform = "js"
}
+ sourceSet {
+ sourceRoots = listOf("src/")
+ analysisPlatform = "wasm"
+ }
}
}
testInline(
@@ -156,7 +160,8 @@ class SinceKotlinTest : AbstractRenderingTest() {
Platform.common to SinceKotlinVersion("1.0"),
Platform.jvm to SinceKotlinVersion("1.0"),
Platform.js to SinceKotlinVersion("1.1"),
- Platform.native to SinceKotlinVersion("1.3")
+ Platform.native to SinceKotlinVersion("1.3"),
+ Platform.wasm to SinceKotlinVersion("1.8"),
)
for(i in sinceKotlin) {
@@ -191,6 +196,10 @@ class SinceKotlinTest : AbstractRenderingTest() {
sourceRoots = listOf("src/")
analysisPlatform = "js"
}
+ sourceSet {
+ sourceRoots = listOf("src/")
+ analysisPlatform = "wasm"
+ }
}
}
testInline(
@@ -213,7 +222,8 @@ class SinceKotlinTest : AbstractRenderingTest() {
Platform.common to SinceKotlinVersion("1.3"),
Platform.jvm to SinceKotlinVersion("1.3"),
Platform.js to SinceKotlinVersion("1.3"),
- Platform.native to SinceKotlinVersion("1.3")
+ Platform.native to SinceKotlinVersion("1.3"),
+ Platform.wasm to SinceKotlinVersion("1.8"),
)
for(i in sinceKotlin) {