|
1 | 1 | /*
|
2 |
| - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. |
| 2 | + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. |
3 | 3 | * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
4 | 4 | */
|
5 | 5 |
|
@@ -62,21 +62,22 @@ class SymbolLightClassForFacade(
|
62 | 62 | private val firstFileInFacade by lazyPub { files.first() }
|
63 | 63 |
|
64 | 64 | private val _modifierList: PsiModifierList by lazyPub {
|
65 |
| - if (multiFileClass) |
66 |
| - return@lazyPub LightModifierList(manager, KotlinLanguage.INSTANCE, PsiModifier.PUBLIC, PsiModifier.FINAL) |
67 |
| - |
68 | 65 | SymbolLightClassModifierList(
|
69 | 66 | containingDeclaration = this,
|
70 | 67 | staticModifiers = setOf(PsiModifier.PUBLIC, PsiModifier.FINAL),
|
71 | 68 | ) { modifierList ->
|
72 |
| - withFileSymbols { fileSymbols -> |
73 |
| - fileSymbols.flatMap { |
74 |
| - it.computeAnnotations( |
75 |
| - modifierList = modifierList, |
76 |
| - nullability = NullabilityType.Unknown, |
77 |
| - annotationUseSiteTarget = AnnotationUseSiteTarget.FILE, |
78 |
| - includeAnnotationsWithoutSite = false, |
79 |
| - ) |
| 69 | + if (multiFileClass) { |
| 70 | + emptyList() |
| 71 | + } else { |
| 72 | + withFileSymbols { fileSymbols -> |
| 73 | + fileSymbols.flatMap { |
| 74 | + it.computeAnnotations( |
| 75 | + modifierList = modifierList, |
| 76 | + nullability = NullabilityType.Unknown, |
| 77 | + annotationUseSiteTarget = AnnotationUseSiteTarget.FILE, |
| 78 | + includeAnnotationsWithoutSite = false, |
| 79 | + ) |
| 80 | + } |
80 | 81 | }
|
81 | 82 | }
|
82 | 83 | }
|
|
0 commit comments