[FIR IDE] Add separate test data for descriptor-based Analysis API implementation
This commit is contained in:
committed by
teamcityserver
parent
1272c6aa33
commit
e06a75c197
Vendored
+3
@@ -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>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
KtDelegatedConstructorCall:
|
||||
argumentMapping = { s -> (p1: kotlin.Int) }
|
||||
targetFunction = ERR<Unresolved call, [<constructor>(p1: kotlin.Int): Base]>
|
||||
kind = SUPER_CALL
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
KtDelegatedConstructorCall:
|
||||
argumentMapping = { }
|
||||
targetFunction = ERR<Unresolved call, []>
|
||||
kind = THIS_CALL
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
KtFunctionCall:
|
||||
argumentMapping = { 1 -> (a: kotlin.Int) }
|
||||
targetFunction = ERR<Unresolved call, [/C.get(a: kotlin.Int, b: kotlin.String): kotlin.Boolean]>
|
||||
analysis/analysis-api/testData/analysisSession/resolveCall/indexedGetWithTooManyArgs.descriptors.txt
Vendored
+3
@@ -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]>
|
||||
+3
@@ -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]>
|
||||
analysis/analysis-api/testData/analysisSession/resolveCall/indexedSetWithTooManyArgs.descriptors.txt
Vendored
+3
@@ -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]>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
KtFunctionCall:
|
||||
argumentMapping = { 2 -> (other: kotlin.Int) }
|
||||
targetFunction = /to(<receiver>: kotlin.Int, other: kotlin.Int): kotlin.Int
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
KtFunctionCall:
|
||||
argumentMapping = { }
|
||||
targetFunction = ERR<Unresolved call, [/foo(): kotlin.Unit]>
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
KtDelegatedConstructorCall:
|
||||
argumentMapping = { }
|
||||
targetFunction = ERR<Unresolved call, []>
|
||||
kind = SUPER_CALL
|
||||
Vendored
+16
@@ -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
|
||||
+9
@@ -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
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
interface A
|
||||
interface B
|
||||
class C<T : A & B>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: av
|
||||
expected type: null
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: av
|
||||
expected type: null
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
expression: super
|
||||
type: kotlin.Any
|
||||
Vendored
+21
@@ -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
|
||||
+13
@@ -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
|
||||
Reference in New Issue
Block a user