[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
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
// FUNCTION: bar
|
||||
|
||||
package test.locals
|
||||
|
||||
class Owner {
|
||||
fun foo(i: Int) {
|
||||
var x = true
|
||||
|
||||
fun bar() {
|
||||
baz(i, x)
|
||||
}
|
||||
}
|
||||
|
||||
fun baz(j: Int, y: Boolean) {}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
local final? fun test/locals/Owner.bar(): R|kotlin/Unit| {
|
||||
baz#(i#, x#)
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
// FUNCTION: foo
|
||||
|
||||
package test.classes
|
||||
|
||||
class Outer {
|
||||
inner class Inner {
|
||||
fun bar()
|
||||
|
||||
fun foo() {
|
||||
val outer = Outer()
|
||||
val inner = outer.Inner()
|
||||
inner.bar()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
public? final? fun test/classes/Outer.Inner.foo(): R|kotlin/Unit| {
|
||||
lval <local>/outer: <implicit> = Outer#()
|
||||
lval <local>/inner: <implicit> = outer#.Inner#()
|
||||
inner#.bar#()
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
// PROPERTY: foo
|
||||
|
||||
package test.classes
|
||||
|
||||
class Outer {
|
||||
inner class Inner {
|
||||
fun bar(): Int
|
||||
|
||||
val foo: Int
|
||||
get() {
|
||||
val outer = Outer()
|
||||
val inner = outer.Inner()
|
||||
return inner.bar()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
public? final? val test/classes/Outer.Inner.foo: Int
|
||||
public? get(): Int {
|
||||
lval <local>/outer: <implicit> = Outer#()
|
||||
lval <local>/inner: <implicit> = outer#.Inner#()
|
||||
^ inner#.bar#()
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
// FUNCTION: foo
|
||||
|
||||
package test.classes
|
||||
|
||||
class Outer<X> {
|
||||
fun foo() {
|
||||
val z = object { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
public? final? fun test/classes/Outer.foo(): R|kotlin/Unit| {
|
||||
lval <local>/z: <implicit> = object : R|kotlin/Any| {
|
||||
private constructor(): R|<anonymous><X>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
// FUNCTION: foo
|
||||
|
||||
package test
|
||||
|
||||
fun bar(): Int {
|
||||
return -1
|
||||
}
|
||||
|
||||
fun foo(): Int {
|
||||
return 0
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
public? final? fun test/foo(): Int {
|
||||
^foo IntegerLiteral(0)
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
// PROPERTY: foo
|
||||
|
||||
package test
|
||||
|
||||
val bar: Int = 10
|
||||
|
||||
val foo: Int = 0
|
||||
@@ -0,0 +1,2 @@
|
||||
public? final? val test/foo: Int = IntegerLiteral(0)
|
||||
public? get(): Int
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
// PROPERTY: foo
|
||||
|
||||
package test
|
||||
|
||||
val bar: Int = 10
|
||||
|
||||
var foo: Int = 0
|
||||
@@ -0,0 +1,3 @@
|
||||
public? final? var test/foo: Int = IntegerLiteral(0)
|
||||
public? get(): Int
|
||||
public? set(value: Int): R|kotlin/Unit|
|
||||
Reference in New Issue
Block a user