[LL API] Add tests for 'FileBasedKotlinDeclarationProvider'

This commit is contained in:
Yan Zhulanow
2023-01-19 18:26:22 +09:00
committed by Space Team
parent 6ba3bcb6b2
commit 562952080e
7 changed files with 280 additions and 0 deletions
@@ -0,0 +1,9 @@
// CLASS: Foo
// CLASS: Foo.Bar
// FUNCTION: /#foo
class Foo {
object Bar
}
fun foo() {}
@@ -0,0 +1,12 @@
// FUNCTION: test/#foo
package test
fun foo() {
fun bar() {
fun baz() {
class Foo
object Bar
}
}
}
@@ -0,0 +1,29 @@
// CLASS: test/Foo
// CLASS: test/Bar
// CLASS: test/Bar.Baz
// CLASS: test/Bar.Boo
// CLASS: test/Bar.Bok
// FUNCTION: test/#foo
// PROPERTY: test/#foo
package test
class Foo
interface Foo
typealias Foo = Foo
enum class Foo
class Bar {
class Baz
object Boo
}
interface Bar {
object Baz
interface Bok
}
fun foo() {}
fun foo(a: Int) {}
val foo: String = "foo"
@@ -0,0 +1,22 @@
// CLASS: test/app/Foo
// CLASS: test/app/Foo.Bar
// CLASS: test/app/Foo.Bar.Baz
// TYPE_ALIAS: test/app/MyString
// FUNCTION: test/app/#foo
// PROPERTY: test/app/#bar
package test.app
interface Foo {
class Bar {
object Baz
}
fun nested() {}
}
typealias MyString = String
fun foo() {}
val bar: String = "bar"