Skip to content

Commit fc257b3

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

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/FirElementSerializer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ class FirElementSerializer private constructor(
13231323
}
13241324

13251325
private fun isDefaultAccessor(accessor: FirPropertyAccessor, property: FirProperty): Boolean {
1326-
if (property.isLocalInFunction) return true
1326+
if (property.isLocal) return true
13271327

13281328
// [FirDefaultPropertyAccessor]---a property accessor without body---can still hold other information, such as annotations,
13291329
// user-contributed visibility, and modifiers, such as `external` or `inline`.

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ inline val FirClassLikeDeclaration.isLocal: Boolean get() = symbol.classId.isLoc
6565
fun FirDeclaration?.isLocalClassOrAnonymousObject(): Boolean = ((this as? FirRegularClass)?.isLocal == true) || this is FirAnonymousObject
6666
fun FirBasedSymbol<*>?.isLocalClassOrAnonymousObject(): Boolean = this?.fir.isLocalClassOrAnonymousObject()
6767

68-
inline val FirProperty.isLocalInFunction: Boolean get() = isLocal && isReplSnippetDeclaration != true
69-
7068
inline val FirClass.isInterface: Boolean
7169
get() = classKind.isInterface
7270

0 commit comments

Comments
 (0)