[Analysis API] update testdata after renderer rework

The new testdata seems to be more correct or just different

^KTIJ-23268
This commit is contained in:
Ilya Kirillov
2022-10-28 10:36:50 +02:00
parent d1eb7c51f1
commit 26ec7ec296
123 changed files with 346 additions and 356 deletions
@@ -1 +0,0 @@
object<LanguageVersionSettings>
@@ -1 +1 @@
fun (@ReceiverTypeAnnotation kotlin.Int).foo()
fun @ReceiverTypeAnnotation kotlin.Int.foo()
@@ -1,2 +1,6 @@
@PropertyAnnotation
var prop: kotlin.Int
var prop: kotlin.Int
@GetAnnotation
get()
@SetAnnotation
set(@SetparamAnnotation value: kotlin.Int)
@@ -1,3 +1,7 @@
@PropertyAnnotation
@FieldAnnotation
var prop: kotlin.Int
@field:FieldAnnotation
var prop: kotlin.Int
@GetAnnotation
get()
@SetAnnotation
set(@setparam:SetparamAnnotation value: kotlin.Int)
@@ -1,5 +1,5 @@
@PropertyAnnotation
@FieldAnnotation
@field:FieldAnnotation
var x: kotlin.Int
@ExplicitGetAnnotation
@GetAnnotation
@@ -1,4 +1,5 @@
@ExplicitPropertyAnnotation
@DelegateAnnotation
@delegate:DelegateAnnotation
@PropertyAnnotation
val lazyProperty: kotlin.Int
val lazyProperty: kotlin.Int
get()
@@ -1 +1,2 @@
val (@ReceiverTypeAnnotation kotlin.Long).prop: kotlin.Boolean
val @ReceiverTypeAnnotation kotlin.Long.prop: kotlin.Boolean
get()
@@ -1 +1,2 @@
val @ReceiverAnnotation @ReceiverTypeAnnotation kotlin.Long.prop: kotlin.Boolean
val @ReceiverAnnotation @ReceiverTypeAnnotation kotlin.Long.prop: kotlin.Boolean
get()
@@ -1 +0,0 @@
class String : java.io.Serializable, kotlin.Comparable<kotlin.String!>, kotlin.CharSequence
@@ -1 +1 @@
class String : kotlin.Any, java.io.Serializable, kotlin.Comparable<kotlin.String!>, kotlin.CharSequence
class String : java.io.Serializable, kotlin.Comparable<kotlin.String!>, kotlin.CharSequence
@@ -1,2 +1,2 @@
@ERROR
@`<Error class: unknown class>`
class MyClass
@@ -1,2 +1,2 @@
@org.jetbrains.kotlin.fir.plugin.MyInterfaceSupertype
class MyClass : kotlin.Any, foo.MyInterface
class MyClass : foo.MyInterface
@@ -1,6 +1,4 @@
annotation class Anno {
constructor(param1: kotlin.String, param2: kotlin.Int)
annotation class Anno(param1: kotlin.String, param2: kotlin.Int) {
val param1: kotlin.String
val param2: kotlin.Int
@@ -1 +1,3 @@
var p: kotlin.Int
var p: kotlin.Int
get()
set(value: kotlin.Int)
@@ -57,7 +57,7 @@ KtClassInitializerSymbol:
origin: SOURCE
symbolKind: CLASS_MEMBER
typeParameters: []
getContainingModule: Could not render due to org.jetbrains.kotlin.utils.KotlinExceptionWithAttachments: Unexpected KtSymbol KtFe10PsiClassInitializerSymbol
getContainingModule: Could not render due to java.lang.StackOverflowError
deprecationStatus: null
@@ -1,5 +1,3 @@
class A {
constructor(a: kotlin.Int, b: kotlin.String)
class A(a: kotlin.Int, b: kotlin.String) {
val a: kotlin.Int
}
@@ -1 +1 @@
class A<@org.jetbrains.annotations.NotNull T, R>
class A<T, R>
@@ -7,9 +7,7 @@ KtTypeParameterSymbol:
name: T
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -20,9 +18,7 @@ KtTypeParameterSymbol:
name: R
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -1 +1,2 @@
val y: kotlin.Int
get()
@@ -1,6 +1,4 @@
class MyColor {
constructor(x: kotlin.Int, y: kotlin.Int, z: kotlin.Int)
class MyColor(x: kotlin.Int, y: kotlin.Int, z: kotlin.Int) {
val x: kotlin.Int
val y: kotlin.Int
@@ -10,6 +8,7 @@ class MyColor {
class Some {
val delegate: MyColor
get()
val lambda: kotlin.Lazy<MyColor>
@@ -6,7 +6,6 @@ val i2: kotlin.Int
get()
var i3: kotlin.Int
get()
@kotlin.Deprecated(message = "don't use getter of i3")
set(value: kotlin.Int)
@@ -19,10 +18,10 @@ var i4: kotlin.Int
@kotlin.Deprecated(message = "don't use f")
fun f(): kotlin.Int
@kotlin.Deprecated(level = kotlin.DeprecationLevel.ERROR, message = "don't use j")
@kotlin.Deprecated(message = "don't use j", level = kotlin.DeprecationLevel.ERROR)
val j: kotlin.Int
@kotlin.Deprecated(level = kotlin.DeprecationLevel.HIDDEN, message = "don't use j2")
@kotlin.Deprecated(message = "don't use j2", level = kotlin.DeprecationLevel.HIDDEN)
val j2: kotlin.Int
val j2: kotlin.Int
@@ -18,10 +18,10 @@ var i4: kotlin.Int
@kotlin.Deprecated(message = "don't use f")
fun f(): kotlin.Int
@kotlin.Deprecated(level = kotlin.DeprecationLevel.ERROR, message = "don't use j")
@kotlin.Deprecated(message = "don't use j", level = kotlin.DeprecationLevel.ERROR)
val j: kotlin.Int
@kotlin.Deprecated(level = kotlin.DeprecationLevel.HIDDEN, message = "don't use j2")
@kotlin.Deprecated(message = "don't use j2", level = kotlin.DeprecationLevel.HIDDEN)
val j2: kotlin.Int
@java.lang.Deprecated
@@ -1,9 +0,0 @@
fun destruct(): kotlin.Int
data class P {
constructor(x: kotlin.Int, y: kotlin.Int)
val x: kotlin.Int
val y: kotlin.Int
}
@@ -1,15 +1,7 @@
fun destruct(): kotlin.Int
class P {
constructor(x: kotlin.Int, y: kotlin.Int)
data class P(x: kotlin.Int, y: kotlin.Int) {
val x: kotlin.Int
val y: kotlin.Int
operator fun component1(): kotlin.Int
operator fun component2(): kotlin.Int
fun copy(x: kotlin.Int = ..., y: kotlin.Int = ...): P
}
@@ -1,5 +1,11 @@
enum class MyEnumClass {
FirstEntry,
FirstEntry {
fun a()
},
SecondEntry,
ThirdEntry
ThirdEntry {
fun one()
fun one(i: kotlin.Int)
}
}
@@ -1,7 +1,20 @@
enum class MyEnumClass {
FirstEntry,
SecondEntry,
ThirdEntry;
FirstEntry {
fun a()
override fun foo()
},
SecondEntry {
override fun foo()
override val i: kotlin.Int
get()
},
ThirdEntry {
override fun foo()
override fun foo(i: kotlin.Int)
};
abstract fun foo()
@@ -1,7 +1,20 @@
enum class MyEnumClass {
FirstEntry,
SecondEntry,
ThirdEntry;
FirstEntry {
fun a()
override fun foo()
},
SecondEntry {
override fun foo()
override val i: kotlin.Int
get()
},
ThirdEntry {
override fun foo()
override fun foo(i: kotlin.Int)
};
abstract fun foo()
@@ -1,5 +1,12 @@
enum class MyEnumClass {
FirstEntry,
FirstEntry {
val a: kotlin.Int
},
SecondEntry,
ThirdEntry
ThirdEntry {
val b: kotlin.Int
val kotlin.Int.d: kotlin.Int
get()
}
}
@@ -1,7 +1,8 @@
enum class Style {
SHEET;
constructor(value: kotlin.String)
enum class Style(value: kotlin.String) {
SHEET {
override val exitAnimation: kotlin.String
get()
};
abstract val exitAnimation: kotlin.String
@@ -1,7 +1,8 @@
enum class Style {
SHEET;
constructor(value: kotlin.String)
enum class Style(value: kotlin.String) {
SHEET {
override val exitAnimation: kotlin.String
get()
};
val value: kotlin.String
@@ -1 +1,3 @@
var p: kotlin.Int
get()
set(value: kotlin.Int)
@@ -4,9 +4,7 @@ KtTypeParameterSymbol:
name: X
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -1,5 +1,5 @@
@kotlin.jvm.JvmField
var jvmField: kotlin.Long
@kotlin.jvm.JvmField
@field:kotlin.jvm.JvmField
var jvmFieldOnField: kotlin.Int
@@ -2,4 +2,5 @@ class A {
val x: kotlin.Int
val kotlin.Int.y: kotlin.Int
get()
}
@@ -4,9 +4,7 @@ KtTypeParameterSymbol:
name: T
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -17,9 +15,7 @@ KtTypeParameterSymbol:
name: T1
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -55,9 +51,7 @@ KtTypeParameterSymbol:
name: T2
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -93,9 +87,7 @@ KtTypeParameterSymbol:
name: T3
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -106,9 +98,7 @@ KtTypeParameterSymbol:
name: T4
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -119,9 +109,7 @@ KtTypeParameterSymbol:
name: T5
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -157,9 +145,7 @@ KtTypeParameterSymbol:
name: T6
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -195,9 +181,7 @@ KtTypeParameterSymbol:
name: T
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -208,9 +192,7 @@ KtTypeParameterSymbol:
name: T1
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -246,9 +228,7 @@ KtTypeParameterSymbol:
name: T2
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -284,9 +264,7 @@ KtTypeParameterSymbol:
name: T3
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -297,9 +275,7 @@ KtTypeParameterSymbol:
name: T4
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -310,9 +286,7 @@ KtTypeParameterSymbol:
name: T5
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -348,9 +322,7 @@ KtTypeParameterSymbol:
name: T6
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -1,7 +1,7 @@
class X<T> {
fun <T3> foo()
inner class Y<T1>
class Z<T2>
fun <T3> foo()
}
@@ -4,9 +4,7 @@ KtTypeParameterSymbol:
name: T
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -17,9 +15,7 @@ KtTypeParameterSymbol:
name: T1
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -55,9 +51,7 @@ KtTypeParameterSymbol:
name: T2
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -93,9 +87,7 @@ KtTypeParameterSymbol:
name: T3
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -106,9 +98,7 @@ KtTypeParameterSymbol:
name: T4
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -119,9 +109,7 @@ KtTypeParameterSymbol:
name: T5
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -157,9 +145,7 @@ KtTypeParameterSymbol:
name: T6
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -195,9 +181,7 @@ KtTypeParameterSymbol:
name: T
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -208,9 +192,7 @@ KtTypeParameterSymbol:
name: T1
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -246,9 +228,7 @@ KtTypeParameterSymbol:
name: T2
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -284,9 +264,7 @@ KtTypeParameterSymbol:
name: T3
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -297,9 +275,7 @@ KtTypeParameterSymbol:
name: T4
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -310,9 +286,7 @@ KtTypeParameterSymbol:
name: T5
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -348,9 +322,7 @@ KtTypeParameterSymbol:
name: T6
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -4,9 +4,7 @@ KtTypeParameterSymbol:
name: T
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -3,7 +3,5 @@ class X<T>
typealias TopLevelAlias = X<kotlin.Int>
class A {
typealias NestedLevelAlias = X<kotlin.String>
fun check()
}
@@ -4,9 +4,7 @@ KtTypeParameterSymbol:
name: T
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -1,5 +1,8 @@
val x: kotlin.Int
val kotlin.Int.y: kotlin.Int
get()
var kotlin.Short.get: kotlin.Long
var kotlin.Short.get: kotlin.Long
get()
set(value: kotlin.Long)
@@ -4,9 +4,7 @@ KtTypeParameterSymbol:
name: T
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -42,9 +40,7 @@ KtTypeParameterSymbol:
name: Z
origin: SOURCE
typeParameters: []
upperBounds: [
kotlin/Any?
]
upperBounds: []
variance: INVARIANT
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -4,4 +4,4 @@ fun nullablePrimitive(vararg b: kotlin.Float?)
fun nonPrimitive(vararg c: kotlin.Any)
fun error(vararg d: ERROR_TYPE)
fun error(vararg d: ERROR_TYPE(Unresolved type for Unresolved))
@@ -4,4 +4,4 @@ fun nullablePrimitive(vararg b: kotlin.Float?)
fun nonPrimitive(vararg c: kotlin.Any)
fun error(vararg d: Unresolved)
fun error(vararg d: ERROR_TYPE(Symbol not found for Unresolved))
@@ -1 +1 @@
constructor(c: (kotlin.collections.MutableCollection<out E!>..kotlin.collections.Collection<E!>?))
constructor(c: kotlin.collections.(Mutable)Collection<out E!>!)
@@ -1 +1 @@
constructor(c: kotlin.collections.(Mutable)Collection<out (E!!..E?)>!)
constructor(c: kotlin.collections.(Mutable)Collection<out (E & kotlin.Any..E?)>!)
@@ -1 +1 @@
fun (@ReceiverTypeAnnotation kotlin.Int).foo()
fun @ReceiverTypeAnnotation kotlin.Int.foo()
@@ -1 +1,2 @@
val (@ReceiverTypeAnnotation kotlin.Long).prop: kotlin.Boolean
val @ReceiverTypeAnnotation kotlin.Long.prop: kotlin.Boolean
get()
@@ -1 +1 @@
fun Runnable(function: () -> kotlin.Unit): java.lang.Runnable
Runnable(function: () -> kotlin.Unit): java.lang.Runnable
@@ -1,2 +1,2 @@
@ERROR
@`<Error class: unknown class>`
class WithGeneratedCompanion