aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2023-10-26 14:39:00 +0300
committerGitHub <noreply@github.com>2023-10-26 14:39:00 +0300
commit9b07435773831874d4d80066a2227596198af988 (patch)
tree45bdc3f88ac64ea934515a1f6b44e63e461f6ce1 /plugins/base/src
parent3be4dd94e3af2e749969ba352482eae6957cac5a (diff)
downloaddokka-9b07435773831874d4d80066a2227596198af988.tar.gz
dokka-9b07435773831874d4d80066a2227596198af988.tar.bz2
dokka-9b07435773831874d4d80066a2227596198af988.zip
[K2] Support kotlin-as-java and javadoc plugins and update version of Analysis API (#3227)
* Implement InheritanceBuilder and for symbols * Enable tests for as-java and javadoc plugins and fix some * Update the version of Analysis API and enable test * Use assert from kotlin.test * Rename `descriptorInheritanceBuilder` * Fix after rebasing * Mute test `two classes from different packages`
Diffstat (limited to 'plugins/base/src')
-rw-r--r--plugins/base/src/test/kotlin/model/ClassesTest.kt15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/base/src/test/kotlin/model/ClassesTest.kt b/plugins/base/src/test/kotlin/model/ClassesTest.kt
index 763809e8..c18dfafb 100644
--- a/plugins/base/src/test/kotlin/model/ClassesTest.kt
+++ b/plugins/base/src/test/kotlin/model/ClassesTest.kt
@@ -126,6 +126,21 @@ class ClassesTest : AbstractModelTest("/src/main/kotlin/classes/Test.kt", "class
type.name equals "Unit"
}
}
+
+ with((this.companion).cast<DObject>()) {
+ name equals "Companion"
+ children counts 5
+
+ with((this / "x").cast<DProperty>()) {
+ name equals "x"
+ }
+
+ with((this / "foo").cast<DFunction>()) {
+ name equals "foo"
+ parameters counts 0
+ type.name equals "Unit"
+ }
+ }
}
}
}