Skip to content

Commit 02e9b3c

Browse files
mglukhikhSpace Team
authored andcommitted
K2: drop FirSimpleFunction.isLocalInFunction
KT-78895 In Progress
1 parent fc257b3 commit 02e9b3c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/FirHelpers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ fun getActualTargetList(container: FirAnnotationContainer): AnnotationTargetList
719719
}
720720
is FirSimpleFunction -> {
721721
when {
722-
annotated.isLocalInFunction -> TargetLists.T_LOCAL_FUNCTION
722+
annotated.isLocal -> TargetLists.T_LOCAL_FUNCTION
723723
annotated.isMember -> TargetLists.T_MEMBER_FUNCTION
724724
else -> TargetLists.T_TOP_LEVEL_FUNCTION
725725
}

compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/utils/FirStatusUtils.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,3 @@ inline val FirFunction.hasBody: Boolean get() = body != null
8787
inline val FirPropertyAccessor.hasBody: Boolean get() = body != null
8888

8989
inline val FirSimpleFunction.isLocal: Boolean get() = status.visibility == Visibilities.Local
90-
91-
inline val FirSimpleFunction.isLocalInFunction: Boolean
92-
get() = status.visibility == Visibilities.Local && isReplSnippetDeclaration != true

0 commit comments

Comments
 (0)