[AA K2] KtFirFunctionSymbol: cleanup code
^KT-54311
This commit is contained in:
committed by
Space Team
parent
638eccac16
commit
deafb75d0e
+5
-6
@@ -96,12 +96,11 @@ internal class KtFirFunctionSymbol(
|
|||||||
|
|
||||||
return when (val kind = symbolKind) {
|
return when (val kind = symbolKind) {
|
||||||
KtSymbolKind.TOP_LEVEL -> KtFirTopLevelFunctionSymbolPointer(firSymbol.callableId, firSymbol.createSignature())
|
KtSymbolKind.TOP_LEVEL -> KtFirTopLevelFunctionSymbolPointer(firSymbol.callableId, firSymbol.createSignature())
|
||||||
KtSymbolKind.CLASS_MEMBER ->
|
KtSymbolKind.CLASS_MEMBER -> KtFirMemberFunctionSymbolPointer(
|
||||||
KtFirMemberFunctionSymbolPointer(
|
requireOwnerPointer(),
|
||||||
requireOwnerPointer(),
|
firSymbol.name,
|
||||||
firSymbol.name,
|
firSymbol.createSignature(),
|
||||||
firSymbol.createSignature()
|
)
|
||||||
)
|
|
||||||
|
|
||||||
KtSymbolKind.LOCAL -> throw CanNotCreateSymbolPointerForLocalLibraryDeclarationException(
|
KtSymbolKind.LOCAL -> throw CanNotCreateSymbolPointerForLocalLibraryDeclarationException(
|
||||||
callableIdIfNonLocal?.toString() ?: name.asString()
|
callableIdIfNonLocal?.toString() ?: name.asString()
|
||||||
|
|||||||
Reference in New Issue
Block a user