Analysis API: Add tests for KT-54648
This commit is contained in:
committed by
Space Team
parent
63a908cff8
commit
5e56845ce0
+18
@@ -262,6 +262,12 @@ public class Fe10IdeNormalAnalysisSourceModuleResolveCallTestGenerated extends A
|
|||||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/comparisonCall.kt");
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/comparisonCall.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("compoundAssignOnGenericVar.kt")
|
||||||
|
public void testCompoundAssignOnGenericVar() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/compoundAssignOnGenericVar.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("compoundAssignOnVal.kt")
|
@TestMetadata("compoundAssignOnVal.kt")
|
||||||
public void testCompoundAssignOnVal() throws Exception {
|
public void testCompoundAssignOnVal() throws Exception {
|
||||||
@@ -634,6 +640,12 @@ public class Fe10IdeNormalAnalysisSourceModuleResolveCallTestGenerated extends A
|
|||||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/kotlinPropertySetter.kt");
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/kotlinPropertySetter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kotlinPropertySetterGeneric.kt")
|
||||||
|
public void testKotlinPropertySetterGeneric() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/kotlinPropertySetterGeneric.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kotlinPropertySetter_unqualified.kt")
|
@TestMetadata("kotlinPropertySetter_unqualified.kt")
|
||||||
public void testKotlinPropertySetter_unqualified() throws Exception {
|
public void testKotlinPropertySetter_unqualified() throws Exception {
|
||||||
@@ -676,6 +688,12 @@ public class Fe10IdeNormalAnalysisSourceModuleResolveCallTestGenerated extends A
|
|||||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/postfixUnaryOperatorWithArrayAccessConvention_complexDispatcher.kt");
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/postfixUnaryOperatorWithArrayAccessConvention_complexDispatcher.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("prefixUnaryOperatorOnGenericVar.kt")
|
||||||
|
public void testPrefixUnaryOperatorOnGenericVar() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/prefixUnaryOperatorOnGenericVar.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("prefixUnaryOperatorOnVar.kt")
|
@TestMetadata("prefixUnaryOperatorOnVar.kt")
|
||||||
public void testPrefixUnaryOperatorOnVar() throws Exception {
|
public void testPrefixUnaryOperatorOnVar() throws Exception {
|
||||||
|
|||||||
+18
@@ -262,6 +262,12 @@ public class FirIdeNormalAnalysisSourceModuleResolveCallTestGenerated extends Ab
|
|||||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/comparisonCall.kt");
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/comparisonCall.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("compoundAssignOnGenericVar.kt")
|
||||||
|
public void testCompoundAssignOnGenericVar() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/compoundAssignOnGenericVar.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("compoundAssignOnVal.kt")
|
@TestMetadata("compoundAssignOnVal.kt")
|
||||||
public void testCompoundAssignOnVal() throws Exception {
|
public void testCompoundAssignOnVal() throws Exception {
|
||||||
@@ -634,6 +640,12 @@ public class FirIdeNormalAnalysisSourceModuleResolveCallTestGenerated extends Ab
|
|||||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/kotlinPropertySetter.kt");
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/kotlinPropertySetter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kotlinPropertySetterGeneric.kt")
|
||||||
|
public void testKotlinPropertySetterGeneric() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/kotlinPropertySetterGeneric.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kotlinPropertySetter_unqualified.kt")
|
@TestMetadata("kotlinPropertySetter_unqualified.kt")
|
||||||
public void testKotlinPropertySetter_unqualified() throws Exception {
|
public void testKotlinPropertySetter_unqualified() throws Exception {
|
||||||
@@ -676,6 +688,12 @@ public class FirIdeNormalAnalysisSourceModuleResolveCallTestGenerated extends Ab
|
|||||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/postfixUnaryOperatorWithArrayAccessConvention_complexDispatcher.kt");
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/postfixUnaryOperatorWithArrayAccessConvention_complexDispatcher.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("prefixUnaryOperatorOnGenericVar.kt")
|
||||||
|
public void testPrefixUnaryOperatorOnGenericVar() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/prefixUnaryOperatorOnGenericVar.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("prefixUnaryOperatorOnVar.kt")
|
@TestMetadata("prefixUnaryOperatorOnVar.kt")
|
||||||
public void testPrefixUnaryOperatorOnVar() throws Exception {
|
public void testPrefixUnaryOperatorOnVar() throws Exception {
|
||||||
|
|||||||
+18
@@ -262,6 +262,12 @@ public class FirStandaloneNormalAnalysisSourceModuleResolveCallTestGenerated ext
|
|||||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/comparisonCall.kt");
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/comparisonCall.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("compoundAssignOnGenericVar.kt")
|
||||||
|
public void testCompoundAssignOnGenericVar() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/compoundAssignOnGenericVar.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("compoundAssignOnVal.kt")
|
@TestMetadata("compoundAssignOnVal.kt")
|
||||||
public void testCompoundAssignOnVal() throws Exception {
|
public void testCompoundAssignOnVal() throws Exception {
|
||||||
@@ -634,6 +640,12 @@ public class FirStandaloneNormalAnalysisSourceModuleResolveCallTestGenerated ext
|
|||||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/kotlinPropertySetter.kt");
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/kotlinPropertySetter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kotlinPropertySetterGeneric.kt")
|
||||||
|
public void testKotlinPropertySetterGeneric() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/kotlinPropertySetterGeneric.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kotlinPropertySetter_unqualified.kt")
|
@TestMetadata("kotlinPropertySetter_unqualified.kt")
|
||||||
public void testKotlinPropertySetter_unqualified() throws Exception {
|
public void testKotlinPropertySetter_unqualified() throws Exception {
|
||||||
@@ -676,6 +688,12 @@ public class FirStandaloneNormalAnalysisSourceModuleResolveCallTestGenerated ext
|
|||||||
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/postfixUnaryOperatorWithArrayAccessConvention_complexDispatcher.kt");
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/postfixUnaryOperatorWithArrayAccessConvention_complexDispatcher.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("prefixUnaryOperatorOnGenericVar.kt")
|
||||||
|
public void testPrefixUnaryOperatorOnGenericVar() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/components/callResolver/resolveCall/prefixUnaryOperatorOnGenericVar.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("prefixUnaryOperatorOnVar.kt")
|
@TestMetadata("prefixUnaryOperatorOnVar.kt")
|
||||||
public void testPrefixUnaryOperatorOnVar() throws Exception {
|
public void testPrefixUnaryOperatorOnVar() throws Exception {
|
||||||
|
|||||||
Vendored
+10
@@ -0,0 +1,10 @@
|
|||||||
|
fun call {
|
||||||
|
val foo = CInt32VarX<Int>()
|
||||||
|
foo.<expr>value</expr> += 42
|
||||||
|
}
|
||||||
|
|
||||||
|
class CInt32VarX<T>
|
||||||
|
|
||||||
|
var <T : Int> CInt32VarX<T>.value: T
|
||||||
|
get() = TODO()
|
||||||
|
set(value) {}
|
||||||
Vendored
+19
@@ -0,0 +1,19 @@
|
|||||||
|
KtSuccessCallInfo:
|
||||||
|
call = KtSimpleVariableAccessCall:
|
||||||
|
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||||
|
dispatchReceiver = null
|
||||||
|
extensionReceiver = KtExplicitReceiverValue:
|
||||||
|
expression = foo
|
||||||
|
isSafeNavigation = false
|
||||||
|
type = CInt32VarX<kotlin.Int>
|
||||||
|
signature = KtVariableLikeSignature:
|
||||||
|
name = value
|
||||||
|
receiverType = CInt32VarX<kotlin.Int>
|
||||||
|
returnType = kotlin.Int
|
||||||
|
symbol = var value: T
|
||||||
|
callableIdIfNonLocal = /value
|
||||||
|
simpleAccess = Read:
|
||||||
|
|
||||||
|
typeArgumentsMapping = {
|
||||||
|
T -> (kotlin.Int)
|
||||||
|
}
|
||||||
Vendored
+10
@@ -0,0 +1,10 @@
|
|||||||
|
fun call {
|
||||||
|
val foo = CInt32VarX<Int>()
|
||||||
|
foo.<expr>value</expr> = 42
|
||||||
|
}
|
||||||
|
|
||||||
|
class CInt32VarX<T>
|
||||||
|
|
||||||
|
var <T : Int> CInt32VarX<T>.value: T
|
||||||
|
get() = TODO()
|
||||||
|
set(value) {}
|
||||||
Vendored
+19
@@ -0,0 +1,19 @@
|
|||||||
|
KtSuccessCallInfo:
|
||||||
|
call = KtSimpleVariableAccessCall:
|
||||||
|
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||||
|
dispatchReceiver = null
|
||||||
|
extensionReceiver = KtExplicitReceiverValue:
|
||||||
|
expression = foo
|
||||||
|
isSafeNavigation = false
|
||||||
|
type = CInt32VarX<kotlin.Int>
|
||||||
|
signature = KtVariableLikeSignature:
|
||||||
|
name = value
|
||||||
|
receiverType = CInt32VarX<kotlin.Int>
|
||||||
|
returnType = kotlin.Int
|
||||||
|
symbol = var value: T
|
||||||
|
callableIdIfNonLocal = /value
|
||||||
|
simpleAccess = Write:
|
||||||
|
value = 42
|
||||||
|
typeArgumentsMapping = {
|
||||||
|
T -> (kotlin.Int)
|
||||||
|
}
|
||||||
+10
@@ -0,0 +1,10 @@
|
|||||||
|
fun call {
|
||||||
|
val foo = CInt32VarX<Int>()
|
||||||
|
<expr>++foo.value</expr>
|
||||||
|
}
|
||||||
|
|
||||||
|
class CInt32VarX<T>
|
||||||
|
|
||||||
|
var <T : Int> CInt32VarX<T>.value: T
|
||||||
|
get() = TODO()
|
||||||
|
set(value) {}
|
||||||
+32
@@ -0,0 +1,32 @@
|
|||||||
|
KtSuccessCallInfo:
|
||||||
|
call = KtCompoundVariableAccessCall:
|
||||||
|
compoundAccess = IncOrDecOperation:
|
||||||
|
kind = INC
|
||||||
|
precedence = PREFIX
|
||||||
|
operationPartiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||||
|
dispatchReceiver = KtExplicitReceiverValue:
|
||||||
|
expression = foo.value
|
||||||
|
isSafeNavigation = false
|
||||||
|
type = kotlin.Int
|
||||||
|
extensionReceiver = null
|
||||||
|
signature = KtFunctionLikeSignature:
|
||||||
|
receiverType = null
|
||||||
|
returnType = kotlin.Int
|
||||||
|
symbol = kotlin/Int.inc(<dispatch receiver>: kotlin.Int): kotlin.Int
|
||||||
|
valueParameters = []
|
||||||
|
callableIdIfNonLocal = kotlin/Int.inc
|
||||||
|
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||||
|
dispatchReceiver = null
|
||||||
|
extensionReceiver = KtExplicitReceiverValue:
|
||||||
|
expression = foo
|
||||||
|
isSafeNavigation = false
|
||||||
|
type = CInt32VarX<kotlin.Int>
|
||||||
|
signature = KtVariableLikeSignature:
|
||||||
|
name = value
|
||||||
|
receiverType = CInt32VarX<kotlin.Int>
|
||||||
|
returnType = kotlin.Int
|
||||||
|
symbol = var value: T
|
||||||
|
callableIdIfNonLocal = /value
|
||||||
|
typeArgumentsMapping = {
|
||||||
|
T -> (kotlin.Int)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user