[AA] introduce FirReceiverParameter
^KT-54417
This commit is contained in:
committed by
Space Team
parent
be7d282974
commit
37d688ae83
+3
-2
@@ -1,11 +1,12 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.analysis.api.symbols
|
||||
|
||||
import org.jetbrains.kotlin.analysis.api.base.KtContextReceiversOwner
|
||||
import org.jetbrains.kotlin.analysis.api.symbols.markers.KtAnnotatedSymbol
|
||||
import org.jetbrains.kotlin.analysis.api.symbols.markers.KtPossibleMemberSymbol
|
||||
import org.jetbrains.kotlin.analysis.api.symbols.markers.KtSymbolWithKind
|
||||
import org.jetbrains.kotlin.analysis.api.symbols.pointers.KtSymbolPointer
|
||||
@@ -26,7 +27,7 @@ public sealed class KtCallableSymbol : KtSymbolWithKind, KtPossibleMemberSymbol,
|
||||
* Symbol for a receiver parameter of a function or property. For example, consider code `fun String.foo() {...}`, the declaration of
|
||||
* `String` receiver parameter is such a symbol.
|
||||
*/
|
||||
public abstract class KtReceiverParameterSymbol : KtSymbol {
|
||||
public abstract class KtReceiverParameterSymbol : KtAnnotatedSymbol {
|
||||
public abstract val type: KtType
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+1
@@ -4,6 +4,7 @@ KtSuccessCallInfo:
|
||||
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||
dispatchReceiver = KtImplicitReceiverValue:
|
||||
symbol = KtReceiverParameterSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtAnonymousFunctionSymbol(<local>/<no name provided>)
|
||||
type: test/Target<kotlin/String>
|
||||
|
||||
+2
-1
@@ -4,6 +4,7 @@ KtSuccessCallInfo:
|
||||
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||
dispatchReceiver = KtImplicitReceiverValue:
|
||||
symbol = KtReceiverParameterSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtAnonymousFunctionSymbol(<local>/<no name provided>)
|
||||
type: test/Target<kotlin/String>
|
||||
@@ -30,4 +31,4 @@ KtSuccessCallInfo:
|
||||
returnType = T
|
||||
symbol = t: T
|
||||
callableIdIfNonLocal = null)
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -3,6 +3,7 @@ KtSuccessCallInfo:
|
||||
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||
dispatchReceiver = KtImplicitReceiverValue:
|
||||
symbol = KtReceiverParameterSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtFunctionSymbol(/call)
|
||||
type: JavaClass
|
||||
@@ -16,4 +17,4 @@ KtSuccessCallInfo:
|
||||
callableIdIfNonLocal = /JavaClass.foo
|
||||
simpleAccess = Read:
|
||||
|
||||
typeArgumentsMapping = {}
|
||||
typeArgumentsMapping = {}
|
||||
+2
-1
@@ -3,6 +3,7 @@ KtSuccessCallInfo:
|
||||
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||
dispatchReceiver = KtImplicitReceiverValue:
|
||||
symbol = KtReceiverParameterSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtFunctionSymbol(/call)
|
||||
type: JavaClass
|
||||
@@ -16,4 +17,4 @@ KtSuccessCallInfo:
|
||||
callableIdIfNonLocal = /JavaClass.foo
|
||||
simpleAccess = Write:
|
||||
value = 42
|
||||
typeArgumentsMapping = {}
|
||||
typeArgumentsMapping = {}
|
||||
+2
-1
@@ -3,6 +3,7 @@ KtSuccessCallInfo:
|
||||
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||
dispatchReceiver = KtImplicitReceiverValue:
|
||||
symbol = KtReceiverParameterSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtFunctionSymbol(/foo)
|
||||
type: A
|
||||
@@ -16,4 +17,4 @@ KtSuccessCallInfo:
|
||||
callableIdIfNonLocal = /A.i
|
||||
simpleAccess = Read:
|
||||
|
||||
typeArgumentsMapping = {}
|
||||
typeArgumentsMapping = {}
|
||||
+2
-1
@@ -3,6 +3,7 @@ KtSuccessCallInfo:
|
||||
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||
dispatchReceiver = KtImplicitReceiverValue:
|
||||
symbol = KtReceiverParameterSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtFunctionSymbol(/foo)
|
||||
type: A
|
||||
@@ -16,4 +17,4 @@ KtSuccessCallInfo:
|
||||
callableIdIfNonLocal = /A.i
|
||||
simpleAccess = Write:
|
||||
value = 1
|
||||
typeArgumentsMapping = {}
|
||||
typeArgumentsMapping = {}
|
||||
+2
-1
@@ -4,6 +4,7 @@ KtSuccessCallInfo:
|
||||
dispatchReceiver = KtSmartCastedReceiverValue:
|
||||
original = KtImplicitReceiverValue:
|
||||
symbol = KtReceiverParameterSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtFunctionSymbol(/test)
|
||||
type: kotlin/Any
|
||||
@@ -18,4 +19,4 @@ KtSuccessCallInfo:
|
||||
callableIdIfNonLocal = kotlin/String.length
|
||||
simpleAccess = Read:
|
||||
|
||||
typeArgumentsMapping = {}
|
||||
typeArgumentsMapping = {}
|
||||
+2
-1
@@ -6,6 +6,7 @@ KtSuccessCallInfo:
|
||||
extensionReceiver = KtSmartCastedReceiverValue:
|
||||
original = KtImplicitReceiverValue:
|
||||
symbol = KtReceiverParameterSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtFunctionSymbol(/test)
|
||||
type: kotlin/Any
|
||||
@@ -18,4 +19,4 @@ KtSuccessCallInfo:
|
||||
valueParameters = []
|
||||
callableIdIfNonLocal = /foo
|
||||
typeArgumentsMapping = {}
|
||||
argumentMapping = {}
|
||||
argumentMapping = {}
|
||||
+1
@@ -4,6 +4,7 @@ KtApplicableCallCandidateInfo:
|
||||
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||
dispatchReceiver = KtImplicitReceiverValue:
|
||||
symbol = KtReceiverParameterSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtAnonymousFunctionSymbol(<local>/<no name provided>)
|
||||
type: test/Target<kotlin/String>
|
||||
|
||||
+1
@@ -4,6 +4,7 @@ KtApplicableCallCandidateInfo:
|
||||
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
|
||||
dispatchReceiver = KtImplicitReceiverValue:
|
||||
symbol = KtReceiverParameterSymbol:
|
||||
annotationsList: []
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtAnonymousFunctionSymbol(<local>/<no name provided>)
|
||||
type: test/Target<kotlin/String>
|
||||
|
||||
Vendored
+4
@@ -1,4 +1,8 @@
|
||||
KtReceiverParameterSymbol:
|
||||
annotationsList: [
|
||||
ReceiverAnnotation()
|
||||
psi: KtAnnotationEntry
|
||||
]
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtFunctionSymbol(/foo)
|
||||
type: [
|
||||
|
||||
+4
@@ -1,4 +1,8 @@
|
||||
KtReceiverParameterSymbol:
|
||||
annotationsList: [
|
||||
ReceiverAnnotation()
|
||||
psi: KtAnnotationEntry
|
||||
]
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtFunctionSymbol(/foo)
|
||||
type: [
|
||||
|
||||
Vendored
+4
@@ -1,4 +1,8 @@
|
||||
KtReceiverParameterSymbol:
|
||||
annotationsList: [
|
||||
ReceiverAnnotation()
|
||||
psi: KtAnnotationEntry
|
||||
]
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtKotlinPropertySymbol(/prop)
|
||||
type: [
|
||||
|
||||
+4
@@ -1,4 +1,8 @@
|
||||
KtReceiverParameterSymbol:
|
||||
annotationsList: [
|
||||
ReceiverAnnotation()
|
||||
psi: KtAnnotationEntry
|
||||
]
|
||||
origin: SOURCE
|
||||
owningCallableSymbol: KtKotlinPropertySymbol(/prop)
|
||||
type: [
|
||||
|
||||
Reference in New Issue
Block a user