[AA] more tests on receiver annotations
^KT-54311 ^KT-54385 ^KT-54417
This commit is contained in:
committed by
Space Team
parent
b8a64d20ac
commit
ba7d340090
+6
@@ -226,6 +226,12 @@ public class Fe10IdeNormalAnalysisSourceModuleSymbolByPsiTestGenerated extends A
|
|||||||
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/propertyWithAnnotations.kt");
|
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/propertyWithAnnotations.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("receiverAnnotation.kt")
|
||||||
|
public void testReceiverAnnotation() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/receiverAnnotation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("topLevelFunctions.kt")
|
@TestMetadata("topLevelFunctions.kt")
|
||||||
public void testTopLevelFunctions() throws Exception {
|
public void testTopLevelFunctions() throws Exception {
|
||||||
|
|||||||
+12
@@ -64,6 +64,12 @@ public class Fe10IdeNormalAnalysisSourceModuleSymbolByReferenceTestGenerated ext
|
|||||||
runTest("analysis/analysis-api/testData/symbols/symbolByReference/explicitLambdaParameter.kt");
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/explicitLambdaParameter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("functionReceiverParameter.kt")
|
||||||
|
public void testFunctionReceiverParameter() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/functionReceiverParameter.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("genericFromFunctionInLocalClass.kt")
|
@TestMetadata("genericFromFunctionInLocalClass.kt")
|
||||||
public void testGenericFromFunctionInLocalClass() throws Exception {
|
public void testGenericFromFunctionInLocalClass() throws Exception {
|
||||||
@@ -82,6 +88,12 @@ public class Fe10IdeNormalAnalysisSourceModuleSymbolByReferenceTestGenerated ext
|
|||||||
runTest("analysis/analysis-api/testData/symbols/symbolByReference/implicitLambdaParameter.kt");
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/implicitLambdaParameter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("propertyReceiverParameter.kt")
|
||||||
|
public void testPropertyReceiverParameter() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/propertyReceiverParameter.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("samConstructor.kt")
|
@TestMetadata("samConstructor.kt")
|
||||||
public void testSamConstructor() throws Exception {
|
public void testSamConstructor() throws Exception {
|
||||||
|
|||||||
+6
@@ -226,6 +226,12 @@ public class FirIdeNormalAnalysisSourceModuleSymbolByPsiTestGenerated extends Ab
|
|||||||
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/propertyWithAnnotations.kt");
|
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/propertyWithAnnotations.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("receiverAnnotation.kt")
|
||||||
|
public void testReceiverAnnotation() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/receiverAnnotation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("topLevelFunctions.kt")
|
@TestMetadata("topLevelFunctions.kt")
|
||||||
public void testTopLevelFunctions() throws Exception {
|
public void testTopLevelFunctions() throws Exception {
|
||||||
|
|||||||
+12
@@ -64,6 +64,12 @@ public class FirIdeNormalAnalysisSourceModuleSymbolByReferenceTestGenerated exte
|
|||||||
runTest("analysis/analysis-api/testData/symbols/symbolByReference/explicitLambdaParameter.kt");
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/explicitLambdaParameter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("functionReceiverParameter.kt")
|
||||||
|
public void testFunctionReceiverParameter() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/functionReceiverParameter.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("genericFromFunctionInLocalClass.kt")
|
@TestMetadata("genericFromFunctionInLocalClass.kt")
|
||||||
public void testGenericFromFunctionInLocalClass() throws Exception {
|
public void testGenericFromFunctionInLocalClass() throws Exception {
|
||||||
@@ -82,6 +88,12 @@ public class FirIdeNormalAnalysisSourceModuleSymbolByReferenceTestGenerated exte
|
|||||||
runTest("analysis/analysis-api/testData/symbols/symbolByReference/implicitLambdaParameter.kt");
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/implicitLambdaParameter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("propertyReceiverParameter.kt")
|
||||||
|
public void testPropertyReceiverParameter() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/propertyReceiverParameter.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("samConstructor.kt")
|
@TestMetadata("samConstructor.kt")
|
||||||
public void testSamConstructor() throws Exception {
|
public void testSamConstructor() throws Exception {
|
||||||
|
|||||||
+2
-4
@@ -10,10 +10,7 @@ import org.jetbrains.kotlin.analysis.api.components.KtDeclarationRendererOptions
|
|||||||
import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols.SymbolTestDirectives.DO_NOT_CHECK_SYMBOL_RESTORE
|
import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols.SymbolTestDirectives.DO_NOT_CHECK_SYMBOL_RESTORE
|
||||||
import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols.SymbolTestDirectives.DO_NOT_CHECK_SYMBOL_RESTORE_K1
|
import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols.SymbolTestDirectives.DO_NOT_CHECK_SYMBOL_RESTORE_K1
|
||||||
import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols.SymbolTestDirectives.DO_NOT_CHECK_SYMBOL_RESTORE_K2
|
import org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols.SymbolTestDirectives.DO_NOT_CHECK_SYMBOL_RESTORE_K2
|
||||||
import org.jetbrains.kotlin.analysis.api.symbols.DebugSymbolRenderer
|
import org.jetbrains.kotlin.analysis.api.symbols.*
|
||||||
import org.jetbrains.kotlin.analysis.api.symbols.KtDeclarationSymbol
|
|
||||||
import org.jetbrains.kotlin.analysis.api.symbols.KtFileSymbol
|
|
||||||
import org.jetbrains.kotlin.analysis.api.symbols.KtSymbol
|
|
||||||
import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer
|
import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer
|
||||||
import org.jetbrains.kotlin.analysis.test.framework.base.AbstractAnalysisApiSingleFileTest
|
import org.jetbrains.kotlin.analysis.test.framework.base.AbstractAnalysisApiSingleFileTest
|
||||||
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.FrontendKind
|
import org.jetbrains.kotlin.analysis.test.framework.test.configurators.FrontendKind
|
||||||
@@ -80,6 +77,7 @@ abstract class AbstractSymbolTest : AbstractAnalysisApiSingleFileTest() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is KtReceiverParameterSymbol -> DebugSymbolRenderer.render(symbol)
|
||||||
else -> error(symbol::class.toString())
|
else -> error(symbol::class.toString())
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
+6
@@ -226,6 +226,12 @@ public class FirStandaloneNormalAnalysisSourceModuleSymbolByPsiTestGenerated ext
|
|||||||
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/propertyWithAnnotations.kt");
|
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/propertyWithAnnotations.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("receiverAnnotation.kt")
|
||||||
|
public void testReceiverAnnotation() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/symbols/symbolByPsi/receiverAnnotation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("topLevelFunctions.kt")
|
@TestMetadata("topLevelFunctions.kt")
|
||||||
public void testTopLevelFunctions() throws Exception {
|
public void testTopLevelFunctions() throws Exception {
|
||||||
|
|||||||
+12
@@ -64,6 +64,12 @@ public class FirStandaloneNormalAnalysisSourceModuleSymbolByReferenceTestGenerat
|
|||||||
runTest("analysis/analysis-api/testData/symbols/symbolByReference/explicitLambdaParameter.kt");
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/explicitLambdaParameter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("functionReceiverParameter.kt")
|
||||||
|
public void testFunctionReceiverParameter() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/functionReceiverParameter.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("genericFromFunctionInLocalClass.kt")
|
@TestMetadata("genericFromFunctionInLocalClass.kt")
|
||||||
public void testGenericFromFunctionInLocalClass() throws Exception {
|
public void testGenericFromFunctionInLocalClass() throws Exception {
|
||||||
@@ -82,6 +88,12 @@ public class FirStandaloneNormalAnalysisSourceModuleSymbolByReferenceTestGenerat
|
|||||||
runTest("analysis/analysis-api/testData/symbols/symbolByReference/implicitLambdaParameter.kt");
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/implicitLambdaParameter.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("propertyReceiverParameter.kt")
|
||||||
|
public void testPropertyReceiverParameter() throws Exception {
|
||||||
|
runTest("analysis/analysis-api/testData/symbols/symbolByReference/propertyReceiverParameter.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("samConstructor.kt")
|
@TestMetadata("samConstructor.kt")
|
||||||
public void testSamConstructor() throws Exception {
|
public void testSamConstructor() throws Exception {
|
||||||
|
|||||||
Vendored
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fun (@ReceiverTypeAnnotation kotlin.Int).foo()
|
||||||
|
|
||||||
|
val (@ReceiverTypeAnnotation kotlin.Long).prop: kotlin.Boolean
|
||||||
|
|
||||||
|
annotation class ReceiverAnnotation
|
||||||
|
|
||||||
|
@kotlin.annotation.Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE])
|
||||||
|
annotation class ReceiverTypeAnnotation
|
||||||
+157
@@ -0,0 +1,157 @@
|
|||||||
|
KtNamedClassOrObjectSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
classIdIfNonLocal: ReceiverAnnotation
|
||||||
|
classKind: ANNOTATION_CLASS
|
||||||
|
companionObject: null
|
||||||
|
contextReceivers: []
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
|
isInner: false
|
||||||
|
modality: FINAL
|
||||||
|
name: ReceiverAnnotation
|
||||||
|
origin: SOURCE
|
||||||
|
superTypes: [
|
||||||
|
kotlin/Annotation
|
||||||
|
]
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
|
||||||
|
KtNamedClassOrObjectSymbol:
|
||||||
|
annotationsList: [
|
||||||
|
kotlin/annotation/Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE])
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
]
|
||||||
|
classIdIfNonLocal: ReceiverTypeAnnotation
|
||||||
|
classKind: ANNOTATION_CLASS
|
||||||
|
companionObject: null
|
||||||
|
contextReceivers: []
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
|
isInner: false
|
||||||
|
modality: FINAL
|
||||||
|
name: ReceiverTypeAnnotation
|
||||||
|
origin: SOURCE
|
||||||
|
superTypes: [
|
||||||
|
kotlin/Annotation
|
||||||
|
]
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
|
||||||
|
KtFunctionSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: /foo
|
||||||
|
contextReceivers: []
|
||||||
|
hasStableParameterNames: true
|
||||||
|
isBuiltinFunctionInvoke: false
|
||||||
|
isExtension: true
|
||||||
|
isExternal: false
|
||||||
|
isInfix: false
|
||||||
|
isInline: false
|
||||||
|
isOperator: false
|
||||||
|
isOverride: false
|
||||||
|
isStatic: false
|
||||||
|
isSuspend: false
|
||||||
|
modality: FINAL
|
||||||
|
name: foo
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @R|ReceiverTypeAnnotation|() kotlin/Int
|
||||||
|
returnType: kotlin/Unit
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
valueParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
|
||||||
|
KtPropertyGetterSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: null
|
||||||
|
contextReceivers: []
|
||||||
|
hasBody: true
|
||||||
|
hasStableParameterNames: true
|
||||||
|
isDefault: false
|
||||||
|
isExtension: false
|
||||||
|
isInline: false
|
||||||
|
isOverride: false
|
||||||
|
modality: FINAL
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
symbolKind: ACCESSOR
|
||||||
|
typeParameters: []
|
||||||
|
valueParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
|
||||||
|
KtKotlinPropertySymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: /prop
|
||||||
|
contextReceivers: []
|
||||||
|
getter: KtPropertyGetterSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: null
|
||||||
|
contextReceivers: []
|
||||||
|
hasBody: true
|
||||||
|
hasStableParameterNames: true
|
||||||
|
isDefault: false
|
||||||
|
isExtension: false
|
||||||
|
isInline: false
|
||||||
|
isOverride: false
|
||||||
|
modality: FINAL
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
symbolKind: ACCESSOR
|
||||||
|
typeParameters: []
|
||||||
|
valueParameters: []
|
||||||
|
visibility: Public
|
||||||
|
hasBackingField: false
|
||||||
|
hasGetter: true
|
||||||
|
hasSetter: false
|
||||||
|
initializer: null
|
||||||
|
isConst: false
|
||||||
|
isDelegatedProperty: false
|
||||||
|
isExtension: true
|
||||||
|
isFromPrimaryConstructor: false
|
||||||
|
isLateInit: false
|
||||||
|
isOverride: false
|
||||||
|
isStatic: false
|
||||||
|
isVal: true
|
||||||
|
modality: FINAL
|
||||||
|
name: prop
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
setter: null
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
getterDeprecationStatus: null
|
||||||
|
javaGetterName: getProp
|
||||||
|
javaSetterName: null
|
||||||
|
setterDeprecationStatus: null
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
annotation class ReceiverAnnotation
|
||||||
|
@Target(AnnotationTarget.TYPE)
|
||||||
|
annotation class ReceiverTypeAnnotation
|
||||||
|
|
||||||
|
fun @receiver:ReceiverAnnotation @ReceiverTypeAnnotation Int.foo() {}
|
||||||
|
|
||||||
|
val @receiver:ReceiverAnnotation @ReceiverTypeAnnotation Long.prop: Boolean get() = true
|
||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fun @ReceiverAnnotation @ReceiverTypeAnnotation kotlin.Int.foo()
|
||||||
|
|
||||||
|
val @ReceiverAnnotation @ReceiverTypeAnnotation kotlin.Long.prop: kotlin.Boolean
|
||||||
|
|
||||||
|
annotation class ReceiverAnnotation
|
||||||
|
|
||||||
|
@kotlin.annotation.Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE])
|
||||||
|
annotation class ReceiverTypeAnnotation
|
||||||
@@ -0,0 +1,165 @@
|
|||||||
|
KtNamedClassOrObjectSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
classIdIfNonLocal: ReceiverAnnotation
|
||||||
|
classKind: ANNOTATION_CLASS
|
||||||
|
companionObject: null
|
||||||
|
contextReceivers: []
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
|
isInner: false
|
||||||
|
modality: FINAL
|
||||||
|
name: ReceiverAnnotation
|
||||||
|
origin: SOURCE
|
||||||
|
superTypes: [
|
||||||
|
kotlin/Annotation
|
||||||
|
]
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
|
||||||
|
KtNamedClassOrObjectSymbol:
|
||||||
|
annotationsList: [
|
||||||
|
kotlin/annotation/Target(allowedTargets = [kotlin.annotation.AnnotationTarget.TYPE])
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
]
|
||||||
|
classIdIfNonLocal: ReceiverTypeAnnotation
|
||||||
|
classKind: ANNOTATION_CLASS
|
||||||
|
companionObject: null
|
||||||
|
contextReceivers: []
|
||||||
|
isData: false
|
||||||
|
isExternal: false
|
||||||
|
isFun: false
|
||||||
|
isInline: false
|
||||||
|
isInner: false
|
||||||
|
modality: FINAL
|
||||||
|
name: ReceiverTypeAnnotation
|
||||||
|
origin: SOURCE
|
||||||
|
superTypes: [
|
||||||
|
kotlin/Annotation
|
||||||
|
]
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
|
||||||
|
KtFunctionSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: /foo
|
||||||
|
contextReceivers: []
|
||||||
|
hasStableParameterNames: true
|
||||||
|
isBuiltinFunctionInvoke: false
|
||||||
|
isExtension: true
|
||||||
|
isExternal: false
|
||||||
|
isInfix: false
|
||||||
|
isInline: false
|
||||||
|
isOperator: false
|
||||||
|
isOverride: false
|
||||||
|
isStatic: false
|
||||||
|
isSuspend: false
|
||||||
|
modality: FINAL
|
||||||
|
name: foo
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Int
|
||||||
|
returnType: kotlin/Unit
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
valueParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
|
||||||
|
KtPropertyGetterSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: null
|
||||||
|
contextReceivers: []
|
||||||
|
hasBody: true
|
||||||
|
hasStableParameterNames: true
|
||||||
|
isDefault: false
|
||||||
|
isExtension: false
|
||||||
|
isInline: false
|
||||||
|
isOverride: false
|
||||||
|
modality: FINAL
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
symbolKind: ACCESSOR
|
||||||
|
typeParameters: []
|
||||||
|
valueParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
|
||||||
|
KtKotlinPropertySymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: /prop
|
||||||
|
contextReceivers: []
|
||||||
|
getter: KtPropertyGetterSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: null
|
||||||
|
contextReceivers: []
|
||||||
|
hasBody: true
|
||||||
|
hasStableParameterNames: true
|
||||||
|
isDefault: false
|
||||||
|
isExtension: false
|
||||||
|
isInline: false
|
||||||
|
isOverride: false
|
||||||
|
modality: FINAL
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
symbolKind: ACCESSOR
|
||||||
|
typeParameters: []
|
||||||
|
valueParameters: []
|
||||||
|
visibility: Public
|
||||||
|
hasBackingField: false
|
||||||
|
hasGetter: true
|
||||||
|
hasSetter: false
|
||||||
|
initializer: null
|
||||||
|
isConst: false
|
||||||
|
isDelegatedProperty: false
|
||||||
|
isExtension: true
|
||||||
|
isFromPrimaryConstructor: false
|
||||||
|
isLateInit: false
|
||||||
|
isOverride: false
|
||||||
|
isStatic: false
|
||||||
|
isVal: true
|
||||||
|
modality: FINAL
|
||||||
|
name: prop
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
setter: null
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
getterDeprecationStatus: null
|
||||||
|
javaGetterName: getProp
|
||||||
|
javaSetterName: null
|
||||||
|
setterDeprecationStatus: null
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fun (@ReceiverTypeAnnotation kotlin.Int).foo()
|
||||||
Vendored
+28
@@ -0,0 +1,28 @@
|
|||||||
|
KtFunctionSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: /foo
|
||||||
|
contextReceivers: []
|
||||||
|
hasStableParameterNames: true
|
||||||
|
isBuiltinFunctionInvoke: false
|
||||||
|
isExtension: true
|
||||||
|
isExternal: false
|
||||||
|
isInfix: false
|
||||||
|
isInline: false
|
||||||
|
isOperator: false
|
||||||
|
isOverride: false
|
||||||
|
isStatic: false
|
||||||
|
isSuspend: false
|
||||||
|
modality: FINAL
|
||||||
|
name: foo
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @R|ReceiverTypeAnnotation|() kotlin/Int
|
||||||
|
returnType: kotlin/Unit
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
valueParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
+9
@@ -0,0 +1,9 @@
|
|||||||
|
// DO_NOT_CHECK_SYMBOL_RESTORE_K2
|
||||||
|
|
||||||
|
annotation class ReceiverAnnotation
|
||||||
|
@Target(AnnotationTarget.TYPE)
|
||||||
|
annotation class ReceiverTypeAnnotation
|
||||||
|
|
||||||
|
fun @receiver:ReceiverAnnotation @ReceiverTypeAnnotation Int.foo() {
|
||||||
|
thi<caret>s
|
||||||
|
}
|
||||||
Vendored
+9
@@ -0,0 +1,9 @@
|
|||||||
|
KtReceiverParameterSymbol:
|
||||||
|
origin: SOURCE
|
||||||
|
owningCallableSymbol: KtFunctionSymbol(/foo)
|
||||||
|
type: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Int
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
KtReceiverParameterSymbol:
|
||||||
|
origin: SOURCE
|
||||||
|
owningCallableSymbol: KtFunctionSymbol(/foo)
|
||||||
|
type: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Int
|
||||||
|
getContainingModule: Could not render due to java.lang.IllegalArgumentException: Failed requirement.
|
||||||
|
|
||||||
|
deprecationStatus: Could not render due to java.lang.IllegalArgumentException: Failed requirement.
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
val (@ReceiverTypeAnnotation kotlin.Long).prop: kotlin.Boolean
|
||||||
Vendored
+55
@@ -0,0 +1,55 @@
|
|||||||
|
KtKotlinPropertySymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: /prop
|
||||||
|
contextReceivers: []
|
||||||
|
getter: KtPropertyGetterSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: null
|
||||||
|
contextReceivers: []
|
||||||
|
hasBody: true
|
||||||
|
hasStableParameterNames: true
|
||||||
|
isDefault: false
|
||||||
|
isExtension: false
|
||||||
|
isInline: false
|
||||||
|
isOverride: false
|
||||||
|
modality: FINAL
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
symbolKind: ACCESSOR
|
||||||
|
typeParameters: []
|
||||||
|
valueParameters: []
|
||||||
|
visibility: Public
|
||||||
|
hasBackingField: false
|
||||||
|
hasGetter: true
|
||||||
|
hasSetter: false
|
||||||
|
initializer: null
|
||||||
|
isConst: false
|
||||||
|
isDelegatedProperty: false
|
||||||
|
isExtension: true
|
||||||
|
isFromPrimaryConstructor: false
|
||||||
|
isLateInit: false
|
||||||
|
isOverride: false
|
||||||
|
isStatic: false
|
||||||
|
isVal: true
|
||||||
|
modality: FINAL
|
||||||
|
name: prop
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
setter: null
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
visibility: Public
|
||||||
|
getContainingModule: KtSourceModule "Sources of main"
|
||||||
|
deprecationStatus: null
|
||||||
|
getterDeprecationStatus: null
|
||||||
|
javaGetterName: getProp
|
||||||
|
javaSetterName: null
|
||||||
|
setterDeprecationStatus: null
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
annotation class ReceiverAnnotation
|
||||||
|
@Target(AnnotationTarget.TYPE)
|
||||||
|
annotation class ReceiverTypeAnnotation
|
||||||
|
|
||||||
|
val @receiver:ReceiverAnnotation @ReceiverTypeAnnotation Long.prop: Boolean get() = { t<caret>his == 1 }
|
||||||
|
|
||||||
|
// DO_NOT_CHECK_SYMBOL_RESTORE_K2
|
||||||
Vendored
+61
@@ -0,0 +1,61 @@
|
|||||||
|
KtReceiverParameterSymbol:
|
||||||
|
origin: SOURCE
|
||||||
|
owningCallableSymbol: KtKotlinPropertySymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: /prop
|
||||||
|
contextReceivers: []
|
||||||
|
getter: KtPropertyGetterSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: null
|
||||||
|
contextReceivers: []
|
||||||
|
hasBody: true
|
||||||
|
hasStableParameterNames: true
|
||||||
|
isDefault: false
|
||||||
|
isExtension: false
|
||||||
|
isInline: false
|
||||||
|
isOverride: false
|
||||||
|
modality: FINAL
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
symbolKind: ACCESSOR
|
||||||
|
typeParameters: []
|
||||||
|
valueParameters: []
|
||||||
|
visibility: Public
|
||||||
|
hasBackingField: false
|
||||||
|
hasGetter: true
|
||||||
|
hasSetter: false
|
||||||
|
initializer: null
|
||||||
|
isConst: false
|
||||||
|
isDelegatedProperty: false
|
||||||
|
isExtension: true
|
||||||
|
isFromPrimaryConstructor: false
|
||||||
|
isLateInit: false
|
||||||
|
isOverride: false
|
||||||
|
isStatic: false
|
||||||
|
isVal: true
|
||||||
|
modality: FINAL
|
||||||
|
name: prop
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
setter: null
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
visibility: Public
|
||||||
|
type: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
+64
@@ -0,0 +1,64 @@
|
|||||||
|
KtReceiverParameterSymbol:
|
||||||
|
origin: SOURCE
|
||||||
|
owningCallableSymbol: KtKotlinPropertySymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: /prop
|
||||||
|
contextReceivers: []
|
||||||
|
getter: KtPropertyGetterSymbol:
|
||||||
|
annotationsList: []
|
||||||
|
callableIdIfNonLocal: null
|
||||||
|
contextReceivers: []
|
||||||
|
hasBody: true
|
||||||
|
hasStableParameterNames: true
|
||||||
|
isDefault: false
|
||||||
|
isExtension: false
|
||||||
|
isInline: false
|
||||||
|
isOverride: false
|
||||||
|
modality: FINAL
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
symbolKind: ACCESSOR
|
||||||
|
typeParameters: []
|
||||||
|
valueParameters: []
|
||||||
|
visibility: Public
|
||||||
|
hasBackingField: false
|
||||||
|
hasGetter: true
|
||||||
|
hasSetter: false
|
||||||
|
initializer: null
|
||||||
|
isConst: false
|
||||||
|
isDelegatedProperty: false
|
||||||
|
isExtension: true
|
||||||
|
isFromPrimaryConstructor: false
|
||||||
|
isLateInit: false
|
||||||
|
isOverride: false
|
||||||
|
isStatic: false
|
||||||
|
isVal: true
|
||||||
|
modality: FINAL
|
||||||
|
name: prop
|
||||||
|
origin: SOURCE
|
||||||
|
receiverType: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
returnType: kotlin/Boolean
|
||||||
|
setter: null
|
||||||
|
symbolKind: TOP_LEVEL
|
||||||
|
typeParameters: []
|
||||||
|
visibility: Public
|
||||||
|
type: [
|
||||||
|
ReceiverAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
ReceiverTypeAnnotation()
|
||||||
|
psi: KtAnnotationEntry
|
||||||
|
] @RECEIVER:R|ReceiverAnnotation|() @R|ReceiverTypeAnnotation|() kotlin/Long
|
||||||
|
getContainingModule: Could not render due to java.lang.IllegalArgumentException: Failed requirement.
|
||||||
|
|
||||||
|
deprecationStatus: Could not render due to java.lang.IllegalArgumentException: Failed requirement.
|
||||||
Reference in New Issue
Block a user