IDE testdata: s/trait/interface

This commit is contained in:
Dmitry Jemerov
2015-05-12 20:39:44 +02:00
parent 99cad4b43f
commit 625096466e
698 changed files with 1049 additions and 1049 deletions
@@ -1,5 +1,5 @@
fun foo() {
public trait T: A
public interface T: A
val a = object: A() {}
@@ -1,3 +1,3 @@
Unclassified usage (2: 18) public trait T: A
Unclassified usage (2: 22) public interface T: A
Unclassified usage (4: 13) val a = object: A() {}
Unclassified usage (7: 17) val b = object: T {}
@@ -1,6 +1,6 @@
public open class X: A()
public trait T: A
public interface T: A
public open class Y: X()
@@ -1,4 +1,4 @@
Unclassified usage (1: 19) public open class X: A()
Unclassified usage (3: 14) public trait T: A
Unclassified usage (3: 18) public interface T: A
Unclassified usage (5: 19) public open class Y: X()
Unclassified usage (7: 14) public class Z: Y(), T
@@ -1,7 +1,7 @@
public class Outer {
public open class X: A()
public trait T: A
public interface T: A
public class Inner {
public open class Y: X()
@@ -1,4 +1,4 @@
Unclassified usage (2: 23) public open class X: A()
Unclassified usage (4: 18) public trait T: A
Unclassified usage (4: 22) public interface T: A
Unclassified usage (7: 27) public open class Y: X()
Unclassified usage (9: 22) public class Z: Y(), T
@@ -1,5 +1,5 @@
class Outer {
public trait T: A
public interface T: A
public object O1: A()
@@ -1,3 +1,3 @@
Unclassified usage (2: 18) public trait T: A
Unclassified usage (2: 22) public interface T: A
Unclassified usage (4: 19) public object O1: A()
Unclassified usage (7: 23) public object O2: T
@@ -1,7 +1,7 @@
fun foo() {
public open class X: A()
public trait T: A
public interface T: A
fun bar() {
public open class Y: X()
@@ -1,4 +1,4 @@
Unclassified usage (2: 23) public open class X: A()
Unclassified usage (4: 18) public trait T: A
Unclassified usage (4: 22) public interface T: A
Unclassified usage (7: 27) public open class Y: X()
Unclassified usage (9: 22) public class Z: Y(), T
@@ -1,5 +1,5 @@
fun foo() {
public trait T: A
public interface T: A
public object O1: A()
@@ -1,3 +1,3 @@
Unclassified usage (2: 18) public trait T: A
Unclassified usage (2: 22) public interface T: A
Unclassified usage (4: 19) public object O1: A()
Unclassified usage (7: 23) public object O2: T
@@ -1,4 +1,4 @@
public trait T: A
public interface T: A
public object O1: A()
@@ -1,3 +1,3 @@
Unclassified usage (1: 14) public trait T: A
Unclassified usage (1: 18) public interface T: A
Unclassified usage (3: 15) public object O1: A()
Unclassified usage (5: 15) public object O2: T
@@ -1,6 +1,6 @@
public open class X: A
public trait T: A
public interface T: A
public open class Y: X()
@@ -1 +1 @@
Unclassified usage (3: 14) public trait T: A
Unclassified usage (3: 18) public interface T: A
@@ -1,6 +1,6 @@
public open class X: A
public trait T: A
public interface T: A
public open class Y: X()
@@ -1,7 +1,7 @@
class Outer {
public open class X: A
public trait T: A
public interface T: A
class Inner {
public open class Y: X()
@@ -1,7 +1,7 @@
fun foo() {
open class X: A
trait T: A
interface T: A
fun bar() {
public open class Y: X()
@@ -1,10 +1,10 @@
fun foo() {
open class X: A
trait T: A
interface T: A
fun bar() {
public trait Y: X
public interface Y: X
public class Z: T
}
@@ -1,2 +1,2 @@
Unclassified usage (4: 11) trait T: A
Unclassified usage (7: 22) public trait Y: X
Unclassified usage (4: 15) interface T: A
Unclassified usage (7: 26) public interface Y: X
@@ -20,7 +20,7 @@ class A() {
}
}
trait Foo
interface Foo
fun Foo.ext() {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: functionUsages
trait <caret>X {
interface <caret>X {
val a: String
get() {
return ""
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: functionUsages
trait X {
interface X {
val a: String
get() {
return ""
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: propertyUsages
trait <caret>X {
interface <caret>X {
val a: String
get() {
return ""
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: propertyUsages
trait X {
interface X {
val a: String
get() {
return ""
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait X {
interface X {
}
@@ -12,6 +12,6 @@ open class C: Y {
}
trait Z: A {
interface Z: A {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait <caret>X {
interface <caret>X {
}
@@ -12,6 +12,6 @@ open class C: Y {
}
trait Z: A {
interface Z: A {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedInterfaces
trait X {
interface X {
}
@@ -12,6 +12,6 @@ open class C: Y {
}
trait Z: A {
interface Z: A {
}
@@ -1,2 +1,2 @@
Unclassified usage (15: 7) trait Z: A {
Unclassified usage (15: 11) interface Z: A {
Unclassified usage (9: 11) interface U extends Z {
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedInterfaces
trait <caret>X {
interface <caret>X {
}
@@ -12,6 +12,6 @@ open class C: Y {
}
trait Z: A {
interface Z: A {
}
@@ -1,3 +1,3 @@
Unclassified usage (15: 7) trait Z: A {
Unclassified usage (15: 11) interface Z: A {
Unclassified usage (5: 11) interface Y extends X {
Unclassified usage (9: 11) interface U extends Z {
@@ -2,7 +2,7 @@
// OPTIONS: derivedClasses
fun foo() {
trait Z: A {
interface Z: A {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait X {
interface X {
}
@@ -8,6 +8,6 @@ open class <caret>A: X {
}
trait Y: X {
interface Y: X {
}
@@ -8,10 +8,10 @@ open class C: Y {
}
trait Z: A {
interface Z: A {
}
trait U: Z {
interface U: Z {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait X {
interface X {
}
@@ -8,6 +8,6 @@ open class <caret>A: X {
}
trait Y: X {
interface Y: X {
}
@@ -10,7 +10,7 @@ class Outer {
}
class Inner {
trait Z: A {
interface Z: A {
}
@@ -1,7 +1,7 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
class Outer {
trait Z: A {
interface Z: A {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait X {
interface X {
}
@@ -8,6 +8,6 @@ open class <caret>A: X {
}
trait Y: X {
interface Y: X {
}
@@ -11,11 +11,11 @@ fun foo() {
}
fun bar() {
trait Z: A {
interface Z: A {
}
trait U: Z {
interface U: Z {
}
}
@@ -2,7 +2,7 @@
// OPTIONS: derivedClasses
fun foo() {
trait Z: A {
interface Z: A {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedInterfaces
trait X {
interface X {
}
@@ -8,6 +8,6 @@ open class <caret>A: X {
}
trait Y: X {
interface Y: X {
}
@@ -11,11 +11,11 @@ fun foo() {
}
fun bar() {
trait Z: A {
interface Z: A {
}
trait U: Z {
interface U: Z {
}
}
@@ -1,2 +1,2 @@
Unclassified usage (14: 15) trait Z: A {
Unclassified usage (18: 15) trait U: Z {
Unclassified usage (14: 19) interface Z: A {
Unclassified usage (18: 19) interface U: Z {
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait Z: A {
interface Z: A {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedInterfaces
trait X {
interface X {
}
@@ -8,6 +8,6 @@ open class <caret>A: X {
}
trait Y: X {
interface Y: X {
}
@@ -8,10 +8,10 @@ open class C: Y {
}
trait Z: A {
interface Z: A {
}
trait U: Z {
interface U: Z {
}
@@ -1,2 +1,2 @@
Unclassified usage (11: 7) trait Z: A {
Unclassified usage (15: 7) trait U: Z {
Unclassified usage (11: 11) interface Z: A {
Unclassified usage (15: 11) interface U: Z {
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: functionUsages
trait <caret>X {
interface <caret>X {
val a: String
get() {
return ""
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: functionUsages
trait X {
interface X {
val a: String
get() {
return ""
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: propertyUsages
trait <caret>X {
interface <caret>X {
val a: String
get() {
return ""
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: propertyUsages
trait X {
interface X {
val a: String
get() {
return ""
@@ -5,7 +5,7 @@ fun foo() {
val b = object: A() {}
trait T: A
interface T: A
fun bar() {
val c = object: A() {}
@@ -5,7 +5,7 @@ fun foo() {
class B: A()
trait T: A
interface T: A
fun bar() {
class C: A()
@@ -5,7 +5,7 @@ fun foo() {
object B: A()
trait T: A
interface T: A
fun bar() {
object C: A()
@@ -3,10 +3,10 @@
fun foo() {
open class <caret>A
trait T: A
interface T: A
fun bar() {
trait U: T
interface U: T
}
}
@@ -1,2 +1,2 @@
Unclassified usage (6: 11) trait T: A
Unclassified usage (9: 15) trait U: T
Unclassified usage (6: 15) interface T: A
Unclassified usage (9: 19) interface U: T
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait <caret>X {
interface <caret>X {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait <caret>X {
interface <caret>X {
}
@@ -8,6 +8,6 @@ open class A: X {
}
trait Y: X {
interface Y: X {
}
@@ -8,10 +8,10 @@ open class C: Y {
}
trait Z: A {
interface Z: A {
}
trait U: Z {
interface U: Z {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait <caret>X {
interface <caret>X {
}
@@ -8,6 +8,6 @@ open class A: X {
}
trait Y: X {
interface Y: X {
}
@@ -10,11 +10,11 @@ class Outer {
}
class Inner {
trait Z: A {
interface Z: A {
}
trait U: Z {
interface U: Z {
}
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait <caret>X {
interface <caret>X {
}
@@ -8,6 +8,6 @@ open class A: X {
}
trait Y: X {
interface Y: X {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait <caret>X {
interface <caret>X {
}
@@ -8,6 +8,6 @@ open class A: X {
}
trait Y: X {
interface Y: X {
}
@@ -11,11 +11,11 @@ fun foo() {
}
fun bar() {
trait Z: A {
interface Z: A {
}
trait U: Z {
interface U: Z {
}
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait <caret>X {
interface <caret>X {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedInterfaces
trait <caret>X {
interface <caret>X {
}
@@ -7,11 +7,11 @@ fun foo() {
}
fun bar() {
trait Z: A {
interface Z: A {
}
trait U: Z {
interface U: Z {
}
}
@@ -1,2 +1,2 @@
Unclassified usage (10: 15) trait Z: A {
Unclassified usage (14: 15) trait U: Z {
Unclassified usage (10: 19) interface Z: A {
Unclassified usage (14: 19) interface U: Z {
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedClasses
trait <caret>X {
interface <caret>X {
}
@@ -8,6 +8,6 @@ open class A: X {
}
trait Y: X {
interface Y: X {
}
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetClass
// OPTIONS: derivedInterfaces
trait <caret>X {
interface <caret>X {
}
@@ -8,6 +8,6 @@ open class A: X {
}
trait Y: X {
interface Y: X {
}
@@ -8,10 +8,10 @@ open class C: Y {
}
trait Z: A {
interface Z: A {
}
trait U: Z {
interface U: Z {
}
@@ -1,3 +1,3 @@
Unclassified usage (11: 7) trait Y: X {
Unclassified usage (11: 7) trait Z: A {
Unclassified usage (15: 7) trait U: Z {
Unclassified usage (11: 11) interface Y: X {
Unclassified usage (11: 11) interface Z: A {
Unclassified usage (15: 11) interface U: Z {
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
// OPTIONS: overloadUsages
trait X<T> {
interface X<T> {
}
fun <T> X<T>.foo(a: Number, b: Number) {
@@ -1,6 +1,6 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
// OPTIONS: overloadUsages
trait X {
interface X {
}
@@ -2,7 +2,7 @@
// OPTIONS: usages, skipImports
package server
trait TraitWithImpl {
interface TraitWithImpl {
fun <caret>foo() = 1
}
@@ -2,7 +2,7 @@
// OPTIONS: usages, skipImports
package server
trait TraitNoImpl {
interface TraitNoImpl {
fun <caret>foo()
}
@@ -1,7 +1,7 @@
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
// OPTIONS: usages, skipImports
trait A {
interface A {
fun foo()
}
@@ -2,7 +2,7 @@
// OPTIONS: usages
package server
trait Some {
interface Some {
companion object {
val <caret>XX = 1
}