[LL FIR] rename testdata to testData to avoid copyright generation
We exclude testData pattern from copyright scope
This commit is contained in:
committed by
Space Team
parent
aef5290210
commit
33e6a85a2d
+17
@@ -0,0 +1,17 @@
|
||||
package one
|
||||
|
||||
class A constructor(a: Int) {
|
||||
fun boo() {
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
val i: Int = 42
|
||||
|
||||
init {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package one
|
||||
|
||||
/* anchor --> */class A /* anchor --> */constructor(/* anchor --> */a: Int/* <-- */)/* <-- */ {
|
||||
/* anchor --> */fun boo() {
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}/* <-- */
|
||||
|
||||
/* anchor --> */val i: Int = 42/* <-- */
|
||||
|
||||
/* anchor --> */init {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}/* <-- */
|
||||
}/* <-- */
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
class A constructor(a: Int) {
|
||||
fun boo() {
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
val i: Int = 42
|
||||
|
||||
init {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/* anchor --> *//* anchor --> */class A /* anchor --> */constructor(/* anchor --> */a: Int/* <-- */)/* <-- */ {
|
||||
/* anchor --> */fun boo() {
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}/* <-- */
|
||||
|
||||
/* anchor --> */val i: Int = 42/* <-- */
|
||||
|
||||
/* anchor --> */init {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}/* <-- */
|
||||
}/* <-- */
|
||||
/* <-- */
|
||||
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
package one
|
||||
|
||||
class A constructor(a: Int) {
|
||||
fun boo() {
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
val i: Int = 42
|
||||
|
||||
init {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
package one/* anchor --> */
|
||||
|
||||
/* anchor --> */class A /* anchor --> */constructor(/* anchor --> */a: Int/* <-- */)/* <-- */ {
|
||||
/* anchor --> */fun boo() {
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}/* <-- */
|
||||
|
||||
/* anchor --> */val i: Int = 42/* <-- */
|
||||
|
||||
/* anchor --> */init {
|
||||
fun foo() {
|
||||
|
||||
}
|
||||
}/* <-- */
|
||||
}/* <-- */
|
||||
/* <-- */
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package one
|
||||
|
||||
annotation class Anno(val s: String)
|
||||
|
||||
@Anno(fun(): String {
|
||||
|
||||
}())
|
||||
class TopLevelClass
|
||||
analysis/low-level-api-fir/testData/nonLocalDeclarationAnchors/localFunctionInsideAnnotationCall.txt
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package one
|
||||
|
||||
/* anchor --> */annotation class Anno/* anchor --> */(/* anchor --> */val s: String/* <-- */)/* <-- *//* <-- */
|
||||
|
||||
/* anchor --> */@Anno(fun(): String {
|
||||
|
||||
}())
|
||||
class TopLevelClass/* <-- */
|
||||
analysis/low-level-api-fir/testData/nonLocalDeclarationAnchors/localFunctionInsideFunctionLiteral.kt
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package one
|
||||
|
||||
open class ClassWithParameter(i: () -> Unit)
|
||||
|
||||
class TopLevelClass : ClassWithParameter({
|
||||
fun foo(param: String) {
|
||||
}
|
||||
})
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package one
|
||||
|
||||
/* anchor --> */open class ClassWithParameter/* anchor --> */(/* anchor --> */i: () -> Unit/* <-- */)/* <-- *//* <-- */
|
||||
|
||||
/* anchor --> */class TopLevelClass : ClassWithParameter({
|
||||
fun foo(param: String) {
|
||||
}
|
||||
})/* <-- */
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package one
|
||||
|
||||
open class ClassWithParameter(s: String)
|
||||
|
||||
class TopLevelClass : ClassWithParameter("${
|
||||
{
|
||||
fun str(): String = 42
|
||||
str()
|
||||
}()
|
||||
}")
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package one
|
||||
|
||||
/* anchor --> */open class ClassWithParameter/* anchor --> */(/* anchor --> */s: String/* <-- */)/* <-- *//* <-- */
|
||||
|
||||
/* anchor --> */class TopLevelClass : ClassWithParameter("${
|
||||
{
|
||||
fun str(): String = 42
|
||||
str()
|
||||
}()
|
||||
}")/* <-- */
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
package one
|
||||
|
||||
open class ClassWithParameter(s: String)
|
||||
|
||||
class TopLevelClass : ClassWithParameter("${
|
||||
fun(): String {
|
||||
return ""
|
||||
}()
|
||||
}")
|
||||
analysis/low-level-api-fir/testData/nonLocalDeclarationAnchors/localFunctionInsideStringTemplate.txt
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
package one
|
||||
|
||||
/* anchor --> */open class ClassWithParameter/* anchor --> */(/* anchor --> */s: String/* <-- */)/* <-- *//* <-- */
|
||||
|
||||
/* anchor --> */class TopLevelClass : ClassWithParameter("${
|
||||
fun(): String {
|
||||
return ""
|
||||
}()
|
||||
}")/* <-- */
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
package one
|
||||
|
||||
interface Interface {
|
||||
fun foo(param: String)
|
||||
}
|
||||
|
||||
open class ClassWithParameter(i: Interface)
|
||||
|
||||
class TopLevelClass : ClassWithParameter(object : Interface {
|
||||
override fun foo(param: String) {
|
||||
}
|
||||
})
|
||||
analysis/low-level-api-fir/testData/nonLocalDeclarationAnchors/localFunctionInsideSuperEntryCall.txt
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
package one
|
||||
|
||||
/* anchor --> */interface Interface {
|
||||
/* anchor --> */fun foo(/* anchor --> */param: String/* <-- */)/* <-- */
|
||||
}/* <-- */
|
||||
|
||||
/* anchor --> */open class ClassWithParameter/* anchor --> */(/* anchor --> */i: Interface/* <-- */)/* <-- *//* <-- */
|
||||
|
||||
/* anchor --> */class TopLevelClass : ClassWithParameter(object : Interface {
|
||||
override fun foo(param: String) {
|
||||
}
|
||||
})/* <-- */
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
class Builder {
|
||||
var version: String = ""
|
||||
|
||||
fun execute() {
|
||||
println(version)
|
||||
}
|
||||
}
|
||||
|
||||
fun build(action: Builder.() -> Unit) = Builder().apply(action)
|
||||
|
||||
build {
|
||||
version = "123"
|
||||
class A {
|
||||
fun doo() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
execute()
|
||||
}
|
||||
|
||||
val builder = build {
|
||||
version = "321"
|
||||
}
|
||||
|
||||
builder.execute()
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
/* anchor --> *//* anchor --> */class Builder {
|
||||
/* anchor --> */var version: String = ""/* <-- */
|
||||
|
||||
/* anchor --> */fun execute() {
|
||||
println(version)
|
||||
}/* <-- */
|
||||
}/* <-- */
|
||||
|
||||
/* anchor --> */fun build(/* anchor --> */action: Builder.() -> Unit/* <-- */) = Builder().apply(action)/* <-- */
|
||||
|
||||
build {
|
||||
version = "123"
|
||||
class A {
|
||||
fun doo() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
execute()
|
||||
}
|
||||
|
||||
/* anchor --> */val builder = build {
|
||||
version = "321"
|
||||
}/* <-- */
|
||||
|
||||
builder.execute()
|
||||
/* <-- */
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
for ((index, _) in emptyList<Int>().withIndex()) {
|
||||
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
/* anchor --> */for ((index, _) in emptyList<Int>().withIndex()) {
|
||||
|
||||
}
|
||||
/* <-- */
|
||||
Reference in New Issue
Block a user