[LL API] Add tests for 'FileBasedKotlinDeclarationProvider'
This commit is contained in:
+9
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
+29
@@ -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"
|
||||
Reference in New Issue
Block a user