KT-64205 [AA] Rearrange testData for reference shortener

Get rid of `referenceShortener/referenceShortener` nested directory
This commit is contained in:
Roman Golyshev
2023-12-13 17:18:01 +02:00
committed by teamcity
parent 21b7405435
commit 146d93a044
355 changed files with 394 additions and 394 deletions
@@ -0,0 +1,16 @@
package one
class A
class B
fun foo(a: () -> Unit) {
}
foo {
one.A
}
foo {
one.B
}
@@ -0,0 +1,10 @@
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
[qualifier] one.A
[qualifier] one.B
with SHORTEN_AND_IMPORT:
[qualifier] one.A
[qualifier] one.B
with SHORTEN_AND_STAR_IMPORT:
[qualifier] one.A
[qualifier] one.B
@@ -0,0 +1,14 @@
// FILE: main.kt
/**
* [a.b.c.dependency.Foo]
* [a.b.c.dependency.Foo.Nested]
*/
fun foo<caret>(): a.b.c.dependency.Foo = t
// FILE: dependency.kt
package a.b.c.dependency
class Foo {
class Nested
}
@@ -0,0 +1,10 @@
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
with SHORTEN_AND_IMPORT:
[type] a.b.c.dependency.Foo
[kdoc] a.b.c.dependency.Foo
[kdoc] a.b.c.dependency.Foo
with SHORTEN_AND_STAR_IMPORT:
[type] a.b.c.dependency.Foo
[kdoc] a.b.c.dependency.Foo
[kdoc] a.b.c.dependency.Foo
@@ -0,0 +1,17 @@
class A<caret> {
abstract class B {
abstract val b: A.B
}
}
class C {
abstract class D {
companion object {
fun foo() {}
}
init {
C.D.Companion.foo()
}
}
}
@@ -0,0 +1,10 @@
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
[type] A.B
[qualifier] C.D.Companion.foo()
with SHORTEN_AND_IMPORT:
[type] A.B
[qualifier] C.D.Companion.foo()
with SHORTEN_AND_STAR_IMPORT:
[type] A.B
[qualifier] C.D.Companion.foo()
@@ -0,0 +1,9 @@
package a.b.c.dependency
import a.b.c.dependency.Foo.Nested
class Foo {
class Nested
}
fun foo<caret>(): a.b.c.dependency.Foo.Nested = t
@@ -0,0 +1,7 @@
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
[type] a.b.c.dependency.Foo.Nested
with SHORTEN_AND_IMPORT:
[type] a.b.c.dependency.Foo.Nested
with SHORTEN_AND_STAR_IMPORT:
[type] a.b.c.dependency.Foo.Nested
@@ -0,0 +1,7 @@
package a.b.c.dependency
class Foo {
class Nested
}
fun foo<caret>(): a.b.c.dependency.Foo.Nested = t
@@ -0,0 +1,7 @@
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
[type] a.b.c.dependency.Foo
with SHORTEN_AND_IMPORT:
[type] a.b.c.dependency.Foo.Nested
with SHORTEN_AND_STAR_IMPORT:
[type] a.b.c.dependency.Foo.Nested