FIR LC: populate only const property on multi-file facade

This commit is contained in:
Jinseong Jeon
2022-01-04 14:51:15 -08:00
committed by Ilya Kirillov
parent 0da24ff4e2
commit 7ff468d9e3
2 changed files with 2 additions and 8 deletions
@@ -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()
}