[FIR IDE] Add separate test data for descriptor-based Analysis API implementation

This commit is contained in:
Yan Zhulanow
2021-10-05 20:30:21 +09:00
committed by teamcityserver
parent 1272c6aa33
commit e06a75c197
18 changed files with 101 additions and 0 deletions
@@ -0,0 +1,3 @@
KtFunctionCall:
argumentMapping = { 1 -> (vararg elements: kotlin.Int), 2 -> (vararg elements: kotlin.Int), 3 -> (vararg elements: kotlin.Int) }
targetFunction = kotlin/arrayOf(vararg elements: kotlin.Int): kotlin.Array<kotlin.Int>
@@ -0,0 +1,4 @@
KtDelegatedConstructorCall:
argumentMapping = { s -> (p1: kotlin.Int) }
targetFunction = ERR<Unresolved call, [<constructor>(p1: kotlin.Int): Base]>
kind = SUPER_CALL
@@ -0,0 +1,4 @@
KtDelegatedConstructorCall:
argumentMapping = { }
targetFunction = ERR<Unresolved call, []>
kind = THIS_CALL
@@ -0,0 +1,3 @@
KtFunctionCall:
argumentMapping = { 1 -> (a: kotlin.Int) }
targetFunction = ERR<Unresolved call, [/C.get(a: kotlin.Int, b: kotlin.String): kotlin.Boolean]>
@@ -0,0 +1,3 @@
KtFunctionCall:
argumentMapping = { 1 -> (a: kotlin.Int), "foo" -> (b: kotlin.String) }
targetFunction = ERR<Unresolved call, [/C.get(a: kotlin.Int, b: kotlin.String): kotlin.Boolean]>
@@ -0,0 +1,3 @@
KtFunctionCall:
argumentMapping = { 1 -> (a: kotlin.Int), false -> (value: kotlin.Boolean) }
targetFunction = ERR<Unresolved call, [/C.set(a: kotlin.Int, b: kotlin.String, value: kotlin.Boolean): kotlin.Unit]>
@@ -0,0 +1,3 @@
KtFunctionCall:
argumentMapping = { 1 -> (a: kotlin.Int), "foo" -> (b: kotlin.String), 3.14 -> (value: kotlin.Boolean) }
targetFunction = ERR<Unresolved call, [/C.set(a: kotlin.Int, b: kotlin.String, value: kotlin.Boolean): kotlin.Unit]>
@@ -0,0 +1,3 @@
KtFunctionCall:
argumentMapping = { 2 -> (other: kotlin.Int) }
targetFunction = /to(<receiver>: kotlin.Int, other: kotlin.Int): kotlin.Int
@@ -0,0 +1,3 @@
KtFunctionCall:
argumentMapping = { }
targetFunction = ERR<Unresolved call, [/foo(): kotlin.Unit]>
@@ -0,0 +1,4 @@
KtDelegatedConstructorCall:
argumentMapping = { }
targetFunction = ERR<Unresolved call, []>
kind = SUPER_CALL
@@ -0,0 +1,16 @@
@Target(allowedTargets = NOT_CONST_EXPRESSION) annotation class base
@base annotation class derived
@base class correct {
constructor(x: Int)
@base constructor()
@base val x: Int
}
@base enum class My {
FIRST,
SECOND,
}
@base fun foo(@base y: @base Int): Int {
@base fun bar(@base z: @base Int): Int
@base val local: Int
}
@base val z: Int
@@ -0,0 +1,9 @@
interface Some
abstract class My<T : Some> {
abstract val x: T
abstract val y: My<Some>.T
abstract val z: My<Some>.T
abstract fun foo(arg: T)
abstract class Some : My<Some>.T
open inner class T
}
@@ -0,0 +1,3 @@
interface A
interface B
class C<T : A & B>
@@ -0,0 +1,2 @@
expression: av
expected type: null
@@ -0,0 +1,2 @@
expression: av
expected type: null
@@ -0,0 +1,2 @@
expression: super
type: kotlin.Any
@@ -0,0 +1,21 @@
KtConstructorSymbol:
annotatedType: [] java/util/ArrayList<E>
annotationClassIds: []
annotations: []
callableIdIfNonLocal: null
containingClassIdIfNonLocal: java/util/ArrayList
dispatchType: null
hasStableParameterNames: false
isExtension: false
isPrimary: false
origin: JAVA
receiverType: null
symbolKind: CLASS_MEMBER
typeParameters: [
KtTypeParameterSymbol(E)
]
valueParameters: [
KtValueParameterSymbol(p0)
]
visibility: Public
deprecationStatus: null
@@ -0,0 +1,13 @@
KtSamConstructorSymbol:
annotatedType: [] java/lang/Runnable
callableIdIfNonLocal: java/lang/Runnable
hasStableParameterNames: true
isExtension: false
name: Runnable
origin: SAM_CONSTRUCTOR
receiverType: null
symbolKind: SAM_CONSTRUCTOR
valueParameters: [
KtValueParameterSymbol(function)
]
deprecationStatus: null