FIR LC: populate only const property on multi-file facade
This commit is contained in:
committed by
Ilya Kirillov
parent
0da24ff4e2
commit
7ff468d9e3
+2
-2
@@ -85,7 +85,6 @@ class FirLightClassForFacade(
|
||||
private val _ownMethods: List<KtLightMethod> by lazyPub {
|
||||
val result = mutableListOf<KtLightMethod>()
|
||||
|
||||
|
||||
val methodsAndProperties = sequence<KtCallableSymbol> {
|
||||
for (fileSymbol in fileSymbols) {
|
||||
analyzeWithSymbolAsContext(fileSymbol) {
|
||||
@@ -118,7 +117,8 @@ class FirLightClassForFacade(
|
||||
|
||||
if (propertySymbol !is KtKotlinPropertySymbol) continue
|
||||
|
||||
if (propertySymbol.isConst && multiFileClass) continue
|
||||
// If this facade represents multiple files, only `const` properties need to be generated.
|
||||
if (multiFileClass && !propertySymbol.isConst) continue
|
||||
|
||||
val isLateInitWithPublicAccessors = if (propertySymbol.isLateInit) {
|
||||
val getterIsPublic = propertySymbol.getter?.toPsiVisibilityForMember(isTopLevel = true)
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
public final class MultiFile /* test.MultiFile*/ {
|
||||
private static final int foo;
|
||||
|
||||
public static final int getFoo();// getFoo()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user