[FIR] builder: provide containingDeclarationSymbol

We cannot use only non-local declarations as anchors due to the same
resolution logic between member declarations of local classes, so we
have to support such cases as well

^KT-63042
This commit is contained in:
Dmitrii Gridin
2023-11-13 14:40:17 +01:00
committed by Space Team
parent be4bc81b1b
commit c5cba4c053
45 changed files with 3767 additions and 1295 deletions
@@ -258,7 +258,7 @@ val ConeKotlinType.isAbstractOrSealedOrInterface: Boolean
context(FirExtension)
fun FirAnnotationContainer.excludeFromJsExport() {
fun FirDeclaration.excludeFromJsExport() {
if (!session.moduleData.platform.isJs()) {
return
}
@@ -275,6 +275,8 @@ fun FirAnnotationContainer.excludeFromJsExport() {
name = jsExportIgnoreAnnotation.name
resolvedSymbol = jsExportIgnoreConstructor
}
containingDeclarationSymbol = this@excludeFromJsExport.symbol
}
replaceAnnotations(annotations + jsExportIgnoreAnnotationCall)