File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
kotlin-compiler-extensions
main/kotlin/com/javiersc/kotlin/compiler/extensions/fir Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 66
77- ` FirBasedSymbol<*>.isProperty(): Boolean `
88- ` FirBasedSymbol<*>.isFunction(): Boolean `
9+ - ` FirBasedSymbol<*>.isTopLevel: Boolean `
910- ` FirBasedSymbol<*>.hasOwner: Boolean `
1011- ` <reified T> classId(): ClassId `
1112- ` ClassId.toCallableId(): CallableId `
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public final class com/javiersc/kotlin/compiler/extensions/fir/FirBasedSymbolKt
2222 public static final fun getHasOwner (Lorg/jetbrains/kotlin/fir/symbols/FirBasedSymbol;)Z
2323 public static final fun isFunction (Lorg/jetbrains/kotlin/fir/symbols/FirBasedSymbol;)Z
2424 public static final fun isProperty (Lorg/jetbrains/kotlin/fir/symbols/FirBasedSymbol;)Z
25+ public static final fun isTopLevel (Lorg/jetbrains/kotlin/fir/symbols/FirBasedSymbol;)Z
2526 public static final fun packageFqName (Lorg/jetbrains/kotlin/fir/symbols/FirBasedSymbol;)Lorg/jetbrains/kotlin/name/FqName;
2627}
2728
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ public fun FirBasedSymbol<*>.packageFqName(): FqName? {
1717 }
1818}
1919
20+ public val FirBasedSymbol <* >.isTopLevel: Boolean
21+ get() = ! hasOwner
22+
2023public val FirBasedSymbol <* >.hasOwner: Boolean
2124 get() = runCatching { getOwnerLookupTag() }.getOrNull() != null
2225
You can’t perform that action at this time.
0 commit comments