diff --git a/analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/firAnnotationUtils.kt b/analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/firAnnotationUtils.kt index a857a8bdab6..9ef20924163 100644 --- a/analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/firAnnotationUtils.kt +++ b/analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/firAnnotationUtils.kt @@ -30,6 +30,7 @@ import org.jetbrains.kotlin.fir.symbols.resolvedAnnotationsWithClassIds import org.jetbrains.kotlin.fir.symbols.resolvedCompilerRequiredAnnotations import org.jetbrains.kotlin.name.ClassId import org.jetbrains.kotlin.name.Name +import org.jetbrains.kotlin.fir.declarations.resolvePhase internal fun mapAnnotationParameters(annotation: FirAnnotation): Map { if (annotation is FirAnnotationCall && annotation.arguments.isEmpty()) return emptyMap() diff --git a/analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirTypeAndAnnotations.kt b/analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirTypeAndAnnotations.kt index ed743124b24..94d1d3a0178 100644 --- a/analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirTypeAndAnnotations.kt +++ b/analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirTypeAndAnnotations.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -14,7 +14,7 @@ import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol import org.jetbrains.kotlin.fir.symbols.impl.FirClassSymbol import org.jetbrains.kotlin.fir.symbols.impl.FirRegularClassSymbol import org.jetbrains.kotlin.fir.types.FirTypeRef - +import org.jetbrains.kotlin.fir.declarations.resolvePhase internal fun FirClassSymbol<*>.superTypesList(builder: KtSymbolByFirBuilder): List = resolvedSuperTypeRefs.mapToKtType(builder) @@ -39,7 +39,7 @@ internal fun FirCallableSymbol<*>.returnType(builder: KtSymbolByFirBuilder): KtT builder.typeBuilder.buildKtType(resolvedReturnType) internal fun FirCallableSymbol<*>.receiver(builder: KtSymbolByFirBuilder): KtReceiverParameterSymbol? = - builder.callableBuilder.buildExtensionReceiverSymbol(this) + builder.callableBuilder.buildExtensionReceiverSymbol(this) internal fun FirCallableSymbol<*>.receiverType(builder: KtSymbolByFirBuilder): KtType? = resolvedReceiverTypeRef?.let { receiver -> diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/FirDesignationState.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/FirDesignationState.kt index 2c7f1ebddd0..183c699de36 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/FirDesignationState.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/FirDesignationState.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -7,14 +7,14 @@ package org.jetbrains.kotlin.analysis.low.level.api.fir import org.jetbrains.kotlin.analysis.low.level.api.fir.api.FirDesignation import org.jetbrains.kotlin.analysis.low.level.api.fir.util.errorWithFirSpecificEntries -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState abstract class ContextByDesignationCollector(private val designation: FirDesignation) { private var context: C? = null private val designationState = FirDesignationState(designation) protected abstract fun getCurrentContext(): C - protected abstract fun goToNestedDeclaration(target: FirElementWithResolvePhase) + protected abstract fun goToNestedDeclaration(target: FirElementWithResolveState) fun getCollectedContext(): C { return context @@ -48,14 +48,14 @@ private class FirDesignationState(val designation: FirDesignation) { fun canGoNext(): Boolean = currentIndex < designation.path.size - val currentDeclarationIfPresent: FirElementWithResolvePhase? + val currentDeclarationIfPresent: FirElementWithResolveState? get() = when (currentIndex) { in designation.path.indices -> designation.path[currentIndex] designation.path.size -> designation.target else -> null } - val currentDeclaration: FirElementWithResolvePhase + val currentDeclaration: FirElementWithResolveState get() = currentDeclarationIfPresent ?: errorWithFirSpecificEntries("Went inside target declaration") diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/api/FirDesignation.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/api/FirDesignation.kt index 73f478f1225..36a479d32da 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/api/FirDesignation.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/api/FirDesignation.kt @@ -28,13 +28,13 @@ import org.jetbrains.kotlin.name.ClassId class FirDesignationWithFile( path: List, - target: FirElementWithResolvePhase, + target: FirElementWithResolveState, val firFile: FirFile ) : FirDesignation( path, target, ) { - fun toSequenceWithFile(includeTarget: Boolean): Sequence = sequence { + fun toSequenceWithFile(includeTarget: Boolean): Sequence = sequence { yield(firFile) yieldAll(path) if (includeTarget) yield(target) @@ -43,18 +43,18 @@ class FirDesignationWithFile( open class FirDesignation( val path: List, - val target: FirElementWithResolvePhase, + val target: FirElementWithResolveState, ) { - val firstNonFileDeclaration: FirElementWithResolvePhase + val firstNonFileDeclaration: FirElementWithResolveState get() = path.firstOrNull() ?: target - fun toSequence(includeTarget: Boolean): Sequence = sequence { + fun toSequence(includeTarget: Boolean): Sequence = sequence { yieldAll(path) if (includeTarget) yield(target) } } -private fun collectDesignationPath(target: FirElementWithResolvePhase): List? { +private fun collectDesignationPath(target: FirElementWithResolveState): List? { when (target) { is FirSimpleFunction, is FirProperty, @@ -214,34 +214,34 @@ private fun findKotlinStdlibClass(classId: ClassId, target: FirDeclaration): Fir return FirElementFinder.findClassifierWithClassId(firFile, classId) as? FirRegularClass } -fun FirElementWithResolvePhase.collectDesignation(firFile: FirFile): FirDesignationWithFile = +fun FirElementWithResolveState.collectDesignation(firFile: FirFile): FirDesignationWithFile = tryCollectDesignation(firFile) ?: buildErrorWithAttachment("No designation of local declaration") { withFirEntry("firFile", firFile) } -fun FirElementWithResolvePhase.collectDesignation(): FirDesignation = +fun FirElementWithResolveState.collectDesignation(): FirDesignation = tryCollectDesignation() ?: buildErrorWithAttachment("No designation of local declaration") { withFirEntry("FirDeclaration", this@collectDesignation) } -fun FirElementWithResolvePhase.collectDesignationWithFile(): FirDesignationWithFile = +fun FirElementWithResolveState.collectDesignationWithFile(): FirDesignationWithFile = tryCollectDesignationWithFile() ?: buildErrorWithAttachment("No designation of local declaration") { withFirEntry("FirDeclaration", this@collectDesignationWithFile) } -fun FirElementWithResolvePhase.tryCollectDesignation(firFile: FirFile): FirDesignationWithFile? = +fun FirElementWithResolveState.tryCollectDesignation(firFile: FirFile): FirDesignationWithFile? = collectDesignationPath(this)?.let { FirDesignationWithFile(it, this, firFile) } -fun FirElementWithResolvePhase.tryCollectDesignation(): FirDesignation? = +fun FirElementWithResolveState.tryCollectDesignation(): FirDesignation? = collectDesignationPath(this)?.let { FirDesignation(it, this) } -fun FirElementWithResolvePhase.tryCollectDesignationWithFile(): FirDesignationWithFile? { +fun FirElementWithResolveState.tryCollectDesignationWithFile(): FirDesignationWithFile? { return when (this) { is FirScript, is FirFileAnnotationsContainer -> { val firFile = getContainingFile() ?: return null @@ -252,6 +252,6 @@ fun FirElementWithResolvePhase.tryCollectDesignationWithFile(): FirDesignationWi val firFile = getContainingFile() ?: return null FirDesignationWithFile(path, this, firFile) } - else -> unexpectedElementError(this) + else -> unexpectedElementError(this) } } diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostics/fir/ContextCollectingDiagnosticCollectorVisitor.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostics/fir/ContextCollectingDiagnosticCollectorVisitor.kt index 440d53cda88..1c3221320b5 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostics/fir/ContextCollectingDiagnosticCollectorVisitor.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostics/fir/ContextCollectingDiagnosticCollectorVisitor.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -9,7 +9,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.ContextByDesignationColle import org.jetbrains.kotlin.analysis.low.level.api.fir.api.FirDesignationWithFile import org.jetbrains.kotlin.analysis.low.level.api.fir.api.collectDesignation import org.jetbrains.kotlin.fir.FirElement -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.analysis.checkers.context.CheckerContextForProvider import org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor import org.jetbrains.kotlin.fir.containingClass @@ -26,7 +26,7 @@ private class ContextCollectingDiagnosticCollectorVisitor private constructor( private val contextCollector = object : ContextByDesignationCollector(designation) { override fun getCurrentContext(): CheckerContextForProvider = context - override fun goToNestedDeclaration(target: FirElementWithResolvePhase) { + override fun goToNestedDeclaration(target: FirElementWithResolveState) { target.accept(this@ContextCollectingDiagnosticCollectorVisitor, null) } } diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/file/structure/FileStructureElement.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/file/structure/FileStructureElement.kt index a4148e28688..ae919fe3cc3 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/file/structure/FileStructureElement.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/file/structure/FileStructureElement.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -123,10 +123,13 @@ internal class ReanalyzableFunctionStructureElement( with(originalFunction) { replaceBody(temporaryFunction.body) replaceContractDescription(temporaryFunction.contractDescription) - replaceResolvePhase(upgradedPhase) + @OptIn(ResolveStateAccess::class) + resolveState = upgradedPhase.asResolveState() } + designation.toSequence(includeTarget = true).forEach { - it.replaceResolvePhase(minOf(it.resolvePhase, upgradedPhase)) + @OptIn(ResolveStateAccess::class) + it.resolveState = minOf(it.resolvePhase, upgradedPhase).asResolveState() } originalFunction.lazyResolveToPhase(FirResolvePhase.BODY_RESOLVE) @@ -169,13 +172,14 @@ internal class ReanalyzablePropertyStructureElement( val upgradedPhase = minOf(originalProperty.resolvePhase, getterPhase, setterPhase, FirResolvePhase.DECLARATIONS) withInvalidationOnException(moduleComponents.session) { + @OptIn(ResolveStateAccess::class) with(originalProperty) { getter?.replaceBody(temporaryProperty.getter?.body) setter?.replaceBody(temporaryProperty.setter?.body) replaceInitializer(temporaryProperty.initializer) - getter?.replaceResolvePhase(upgradedPhase) - setter?.replaceResolvePhase(upgradedPhase) - replaceResolvePhase(upgradedPhase) + getter?.resolveState = upgradedPhase.asResolveState() + setter?.resolveState = upgradedPhase.asResolveState() + resolveState = upgradedPhase.asResolveState() replaceBodyResolveState(FirPropertyBodyResolveState.NOTHING_RESOLVED) } diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/lazy/resolve/FirLazyBodiesCalculator.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/lazy/resolve/FirLazyBodiesCalculator.kt index e4116095b1c..22ad88a3253 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/lazy/resolve/FirLazyBodiesCalculator.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/lazy/resolve/FirLazyBodiesCalculator.kt @@ -44,7 +44,7 @@ internal object FirLazyBodiesCalculator { firFile.transform>(FirLazyBodiesCalculatorTransformer, persistentListOf()) } - fun calculateAnnotations(firElement: FirElementWithResolvePhase) { + fun calculateAnnotations(firElement: FirElementWithResolveState) { calculateAnnotations(firElement, firElement.moduleData.session) } @@ -55,7 +55,7 @@ internal object FirLazyBodiesCalculator { ) } - fun calculateCompilerAnnotations(firElement: FirElementWithResolvePhase) { + fun calculateCompilerAnnotations(firElement: FirElementWithResolveState) { firElement.transform( FirLazyAnnotationTransformer, FirLazyAnnotationTransformerData(firElement.moduleData.session, FirLazyAnnotationTransformerScope.COMPILER_ONLY) diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/lazy/resolve/LLFirModuleLazyDeclarationResolver.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/lazy/resolve/LLFirModuleLazyDeclarationResolver.kt index 996e02bef98..307d26da095 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/lazy/resolve/LLFirModuleLazyDeclarationResolver.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/lazy/resolve/LLFirModuleLazyDeclarationResolver.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -18,7 +18,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.util.getContainingFile import org.jetbrains.kotlin.analysis.low.level.api.fir.util.withFirEntry import org.jetbrains.kotlin.analysis.utils.errors.rethrowExceptionWithDetails import org.jetbrains.kotlin.fir.FirElement -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirFileAnnotationsContainer import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.declarations.synthetic.FirSyntheticProperty @@ -58,13 +58,13 @@ internal class LLFirModuleLazyDeclarationResolver(val moduleComponents: LLFirMod } } - private fun FirElementWithResolvePhase.isValidForResolve() = when (this) { + private fun FirElementWithResolveState.isValidForResolve() = when (this) { is FirDeclaration -> isValidForResolve() is FirFileAnnotationsContainer -> true else -> throwUnexpectedFirElementError(this) } - private fun resolveContainingFileToImports(target: FirElementWithResolvePhase) { + private fun resolveContainingFileToImports(target: FirElementWithResolveState) { if (target.resolvePhase >= FirResolvePhase.IMPORTS) return val firFile = target.getContainingFile() ?: return if (firFile.resolvePhase >= FirResolvePhase.IMPORTS) return @@ -77,7 +77,8 @@ internal class LLFirModuleLazyDeclarationResolver(val moduleComponents: LLFirMod if (firFile.resolvePhase >= FirResolvePhase.IMPORTS) return checkCanceled() firFile.transform(FirImportResolveTransformer(firFile.moduleData.session), null) - firFile.replaceResolvePhase(FirResolvePhase.IMPORTS) + @OptIn(ResolveStateAccess::class) + firFile.resolveState = FirResolvePhase.IMPORTS.asResolveState() } /** @@ -87,7 +88,7 @@ internal class LLFirModuleLazyDeclarationResolver(val moduleComponents: LLFirMod * @param target target non-local declaration */ fun lazyResolve( - target: FirElementWithResolvePhase, + target: FirElementWithResolveState, scopeSession: ScopeSession, toPhase: FirResolvePhase, ) { @@ -100,7 +101,7 @@ internal class LLFirModuleLazyDeclarationResolver(val moduleComponents: LLFirMod } private fun doLazyResolve( - target: FirElementWithResolvePhase, + target: FirElementWithResolveState, scopeSession: ScopeSession, toPhase: FirResolvePhase, ) { @@ -121,7 +122,7 @@ internal class LLFirModuleLazyDeclarationResolver(val moduleComponents: LLFirMod } } - private fun declarationDesignationsToResolve(target: FirElementWithResolvePhase): List { + private fun declarationDesignationsToResolve(target: FirElementWithResolveState): List { return when (target) { is FirPropertyAccessor -> declarationDesignationsToResolve(target.propertySymbol.fir) is FirBackingField -> declarationDesignationsToResolve(target.propertySymbol.fir) @@ -203,7 +204,7 @@ internal class LLFirModuleLazyDeclarationResolver(val moduleComponents: LLFirMod private fun handleExceptionFromResolve( exception: Exception, - firDeclarationToResolve: FirElementWithResolvePhase, + firDeclarationToResolve: FirElementWithResolveState, fromPhase: FirResolvePhase, toPhase: FirResolvePhase? ): Nothing { diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/project/structure/LLFirModuleData.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/project/structure/LLFirModuleData.kt index 0746df7bb70..6ca8f5d0274 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/project/structure/LLFirModuleData.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/project/structure/LLFirModuleData.kt @@ -1,12 +1,12 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.analysis.low.level.api.fir.project.structure import org.jetbrains.kotlin.analysis.project.structure.KtModule -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirModuleData import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.moduleData @@ -15,7 +15,7 @@ import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.platform.TargetPlatform import org.jetbrains.kotlin.resolve.PlatformDependentAnalyzerServices -val FirElementWithResolvePhase.llFirModuleData: LLFirModuleData +val FirElementWithResolveState.llFirModuleData: LLFirModuleData get() { return moduleData as LLFirModuleData } diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/sessions/LLFirResolvableModuleSession.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/sessions/LLFirResolvableModuleSession.kt index 3da5770f669..ec240160cbf 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/sessions/LLFirResolvableModuleSession.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/sessions/LLFirResolvableModuleSession.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -9,7 +9,7 @@ import com.intellij.openapi.util.ModificationTracker import org.jetbrains.kotlin.analysis.low.level.api.fir.LLFirModuleResolveComponents import org.jetbrains.kotlin.analysis.project.structure.KtModule import org.jetbrains.kotlin.fir.BuiltinTypes -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.resolve.ScopeSession import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol @@ -25,7 +25,7 @@ abstract class LLFirResolvableModuleSession( } } -internal val FirElementWithResolvePhase.llFirResolvableSession: LLFirResolvableModuleSession? +internal val FirElementWithResolveState.llFirResolvableSession: LLFirResolvableModuleSession? get() = llFirSession as? LLFirResolvableModuleSession internal val FirBasedSymbol<*>.llFirResolvableSession: LLFirResolvableModuleSession? diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/sessions/LLFirSession.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/sessions/LLFirSession.kt index 724db1a05c0..cf50d971475 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/sessions/LLFirSession.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/sessions/LLFirSession.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -14,7 +14,7 @@ import org.jetbrains.kotlin.analysis.providers.KotlinModificationTrackerFactory import org.jetbrains.kotlin.analysis.providers.KtModuleStateTracker import org.jetbrains.kotlin.analysis.utils.trackers.CompositeModificationTracker import org.jetbrains.kotlin.fir.BuiltinTypes -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.PrivateSessionConstructor import org.jetbrains.kotlin.fir.resolve.ScopeSession @@ -102,7 +102,7 @@ abstract class LLFirModuleSession( kind: Kind ) : LLFirSession(ktModule, dependencyTracker, builtinTypes, kind) -val FirElementWithResolvePhase.llFirSession: LLFirSession +val FirElementWithResolveState.llFirSession: LLFirSession get() = moduleData.session as LLFirSession val FirBasedSymbol<*>.llFirSession: LLFirSession diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDeclarationTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDeclarationTransformer.kt index 4a263099391..015a2f4323a 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDeclarationTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDeclarationTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -7,7 +7,7 @@ package org.jetbrains.kotlin.analysis.low.level.api.fir.transformers import org.jetbrains.kotlin.analysis.low.level.api.fir.api.FirDesignation import org.jetbrains.kotlin.fir.FirElement -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.render import org.jetbrains.kotlin.fir.visitors.FirDefaultTransformer @@ -43,7 +43,7 @@ internal class LLFirDeclarationTransformer(private val designation: FirDesignati private inline fun processDeclarationContent( declaration: FirDeclaration, default: () -> FirDeclaration, - applyToDesignated: (FirElementWithResolvePhase) -> Unit, + applyToDesignated: (FirElementWithResolveState) -> Unit, ): FirDeclaration { //It means that we are inside the target declaration if (isInsideTargetDeclaration) { diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationArgumentsMappingTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationArgumentsMappingTransformer.kt index eda112fc977..def6e276871 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationArgumentsMappingTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationArgumentsMappingTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -12,7 +12,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.transformers.LLFirLazyTra import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkAnnotationArgumentsMappingIsResolved import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkPhase import org.jetbrains.kotlin.fir.FirAnnotationContainer -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.declarations.FirFile @@ -21,6 +21,7 @@ import org.jetbrains.kotlin.fir.expressions.FirAnnotationCall import org.jetbrains.kotlin.fir.resolve.ResolutionMode import org.jetbrains.kotlin.fir.resolve.ScopeSession import org.jetbrains.kotlin.fir.resolve.transformers.plugin.FirAnnotationArgumentsMappingTransformer +import org.jetbrains.kotlin.fir.declarations.resolvePhase /** * Transform designation into ANNOTATIONS_ARGUMENTS_MAPPING declaration. Affects only for target declaration, it's children and dependents @@ -50,7 +51,7 @@ internal class LLFirDesignatedAnnotationArgumentsMappingTransformer( checkIsResolved(designation.target) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { target.checkPhase(FirResolvePhase.ANNOTATIONS_ARGUMENTS_MAPPING) if (target !is FirAnnotationContainer) return for (annotation in target.annotations) { diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationArgumentsResolveTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationArgumentsResolveTransformer.kt index d2ccfdd5d49..50e8733df28 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationArgumentsResolveTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationArgumentsResolveTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -12,7 +12,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkPhase import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkTypeRefIsResolved import org.jetbrains.kotlin.analysis.low.level.api.fir.util.withFirEntry import org.jetbrains.kotlin.fir.FirAnnotationContainer -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.resolve.ResolutionMode @@ -26,7 +26,7 @@ internal class LLFirDesignatedAnnotationArgumentsResolveTransformer( scopeSession: ScopeSession, ) : LLFirLazyTransformer, FirAnnotationArgumentsResolveTransformer(session, scopeSession, FirResolvePhase.ARGUMENTS_OF_ANNOTATIONS) { - private fun moveNextDeclaration(designationIterator: Iterator) { + private fun moveNextDeclaration(designationIterator: Iterator) { if (!designationIterator.hasNext()) { FirLazyBodiesCalculator.calculateAnnotations(designation.target) designation.target.transform(declarationsTransformer, ResolutionMode.ContextIndependent) @@ -63,13 +63,13 @@ internal class LLFirDesignatedAnnotationArgumentsResolveTransformer( phaseRunner.runPhaseWithCustomResolve(FirResolvePhase.ARGUMENTS_OF_ANNOTATIONS) { moveNextDeclaration(designationIterator) } - + LLFirLazyTransformer.updatePhaseDeep(designation.target, FirResolvePhase.ARGUMENTS_OF_ANNOTATIONS) checkIsResolved(designation.target) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { if (target !is FirAnnotationContainer) return val unresolvedAnnotation = target.annotations.firstOrNull { it.annotationTypeRef !is FirResolvedTypeRef } check(unresolvedAnnotation == null) { diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationsResolveTransformed.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationsResolveTransformed.kt index 6a312675c00..8f9ea84763c 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationsResolveTransformed.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedAnnotationsResolveTransformed.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -9,7 +9,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.LLFirPhaseRunner import org.jetbrains.kotlin.analysis.low.level.api.fir.api.FirDesignationWithFile import org.jetbrains.kotlin.analysis.low.level.api.fir.lazy.resolve.FirLazyBodiesCalculator import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkPhase -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.resolve.ScopeSession @@ -20,9 +20,10 @@ internal class LLFirDesignatedAnnotationsResolveTransformed( private val designation: FirDesignationWithFile, session: FirSession, scopeSession: ScopeSession, -) : LLFirLazyTransformer, FirCompilerRequiredAnnotationsResolveTransformer(session, scopeSession, CompilerRequiredAnnotationsComputationSession()) { +) : LLFirLazyTransformer, + FirCompilerRequiredAnnotationsResolveTransformer(session, scopeSession, CompilerRequiredAnnotationsComputationSession()) { - private fun moveNextDeclaration(designationIterator: Iterator) { + private fun moveNextDeclaration(designationIterator: Iterator) { if (!designationIterator.hasNext()) { val declaration = designation.target FirLazyBodiesCalculator.calculateCompilerAnnotations(declaration) @@ -59,7 +60,7 @@ internal class LLFirDesignatedAnnotationsResolveTransformed( checkIsResolved(designation.target) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { target.checkPhase(FirResolvePhase.COMPILER_REQUIRED_ANNOTATIONS) // todo add proper check that COMPILER_REQUIRED_ANNOTATIONS are resolved // checkNestedDeclarationsAreResolved(declaration) diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedBodyResolveTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedBodyResolveTransformer.kt index 044f23255d1..77fa358cc2c 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedBodyResolveTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedBodyResolveTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -18,7 +18,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.api.FirDesignationWithFil import org.jetbrains.kotlin.analysis.low.level.api.fir.element.builder.LLFirEnsureBasedTransformerForReturnTypeCalculator import org.jetbrains.kotlin.analysis.low.level.api.fir.transformers.LLFirLazyTransformer.Companion.updatePhaseDeep import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkPhase -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState /** * Transform designation into BODY_RESOLVE declaration. Affects only for target declaration and it's children @@ -54,14 +54,14 @@ internal class LLFirDesignatedBodyResolveTransformer( phaseRunner.runPhaseWithCustomResolve(FirResolvePhase.BODY_RESOLVE) { designation.firFile.transform(this, ResolutionMode.ContextIndependent) } - + ideDeclarationTransformer.ensureDesignationPassed() updatePhaseDeep(designation.target, FirResolvePhase.BODY_RESOLVE, withNonLocalDeclarations = true) checkIsResolved(designation.target) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { target.checkPhase(FirResolvePhase.BODY_RESOLVE) checkNestedDeclarationsAreResolved(target) } diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedContractsResolveTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedContractsResolveTransformer.kt index 60083c4058a..e04fd341fb7 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedContractsResolveTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedContractsResolveTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -14,7 +14,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.api.FirDesignationWithFil import org.jetbrains.kotlin.analysis.low.level.api.fir.lazy.resolve.FirLazyBodiesCalculator import org.jetbrains.kotlin.analysis.low.level.api.fir.transformers.LLFirLazyTransformer.Companion.updatePhaseDeep import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkPhase -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.resolve.transformers.contracts.FirAbstractContractResolveTransformerDispatcher /** @@ -51,16 +51,16 @@ internal class LLFirDesignatedContractsResolveTransformer( phaseRunner.runPhaseWithCustomResolve(FirResolvePhase.CONTRACTS) { designation.firFile.transform(this, ResolutionMode.ContextIndependent) } - + ideDeclarationTransformer.ensureDesignationPassed() updatePhaseDeep(designation.target, FirResolvePhase.CONTRACTS) checkIsResolved(designation.target) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { target.checkPhase(FirResolvePhase.CONTRACTS) if (target is FirContractDescriptionOwner) { - // TODO checkContractDescriptionIsResolved(declaration) + // TODO checkContractDescriptionIsResolved(declaration) } checkNestedDeclarationsAreResolved(target) } diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedExpectActualMatcherTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedExpectActualMatcherTransformer.kt index a85dc6c0d22..c4dc2bce830 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedExpectActualMatcherTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedExpectActualMatcherTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -10,7 +10,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.api.FirDesignationWithFil import org.jetbrains.kotlin.analysis.low.level.api.fir.lazy.resolve.FirLazyBodiesCalculator import org.jetbrains.kotlin.analysis.low.level.api.fir.transformers.LLFirLazyTransformer.Companion.updatePhaseDeep import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkPhase -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.expressions.FirStatement @@ -45,14 +45,14 @@ internal class LLFirDesignatedExpectActualMatcherTransformer( phaseRunner.runPhaseWithCustomResolve(FirResolvePhase.EXPECT_ACTUAL_MATCHING) { designation.firFile.transform(this, null) } - + declarationTransformer.ensureDesignationPassed() updatePhaseDeep(designation.target, FirResolvePhase.EXPECT_ACTUAL_MATCHING) checkIsResolved(designation.target) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { target.checkPhase(FirResolvePhase.EXPECT_ACTUAL_MATCHING) // TODO check if expect-actual matching is present checkNestedDeclarationsAreResolved(target) diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedGeneratedCompanionObjectResolveTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedGeneratedCompanionObjectResolveTransformer.kt index 365be27b57a..5dd69484e60 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedGeneratedCompanionObjectResolveTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedGeneratedCompanionObjectResolveTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -7,11 +7,12 @@ package org.jetbrains.kotlin.analysis.low.level.api.fir.transformers import org.jetbrains.kotlin.analysis.low.level.api.fir.LLFirPhaseRunner import org.jetbrains.kotlin.analysis.low.level.api.fir.api.FirDesignationWithFile -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.declarations.FirResolvePhase import org.jetbrains.kotlin.fir.resolve.transformers.plugin.FirCompanionGenerationTransformer +import org.jetbrains.kotlin.fir.declarations.resolvePhase internal class LLFirDesignatedGeneratedCompanionObjectResolveTransformer( val designation: FirDesignationWithFile, @@ -30,7 +31,7 @@ internal class LLFirDesignatedGeneratedCompanionObjectResolveTransformer( checkIsResolved(designation.target) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { check(target.resolvePhase >= FirResolvePhase.COMPANION_GENERATION) } } \ No newline at end of file diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedImplicitTypesTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedImplicitTypesTransformer.kt index ac4527513e2..34e7556a0d9 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedImplicitTypesTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedImplicitTypesTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -19,7 +19,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.element.builder.LLFirDesi import org.jetbrains.kotlin.analysis.low.level.api.fir.transformers.LLFirLazyTransformer.Companion.updatePhaseDeep import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkPhase import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkReturnTypeRefIsResolved -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState /** * Transform designation into IMPLICIT_TYPES_BODY_RESOLVE declaration. Affects only for target declaration, it's children and dependents @@ -57,14 +57,14 @@ internal class LLFirDesignatedImplicitTypesTransformer( phaseRunner.runPhaseWithCustomResolve(FirResolvePhase.IMPLICIT_TYPES_BODY_RESOLVE) { designation.firFile.transform(this, ResolutionMode.ContextIndependent) } - + ideDeclarationTransformer.ensureDesignationPassed() updatePhaseDeep(designation.target, FirResolvePhase.IMPLICIT_TYPES_BODY_RESOLVE) checkIsResolved(designation.target) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { target.checkPhase(FirResolvePhase.IMPLICIT_TYPES_BODY_RESOLVE) if (target is FirCallableDeclaration) { checkReturnTypeRefIsResolved(target) diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedStatusResolveTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedStatusResolveTransformer.kt index 30d3f28b806..ba1b55b5fbb 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedStatusResolveTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedStatusResolveTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -10,7 +10,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.api.FirDesignationWithFil import org.jetbrains.kotlin.analysis.low.level.api.fir.transformers.LLFirLazyTransformer.Companion.updatePhaseDeep import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkDeclarationStatusIsResolved import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkPhase -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.expressions.FirStatement @@ -90,7 +90,7 @@ internal class LLFirDesignatedStatusResolveTransformer( checkIsResolved(designation.target) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { if (target !is FirAnonymousInitializer) { target.checkPhase(FirResolvePhase.STATUS) } diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedSupertypeResolverTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedSupertypeResolverTransformer.kt index 87c30c5dbb8..4b5c54fb3f6 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedSupertypeResolverTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedSupertypeResolverTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -17,7 +17,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkPhase import org.jetbrains.kotlin.analysis.low.level.api.fir.util.checkTypeRefIsResolved import org.jetbrains.kotlin.analysis.low.level.api.fir.util.withInvalidationOnException import org.jetbrains.kotlin.fir.FirElement -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.java.declarations.FirJavaClass @@ -72,7 +72,7 @@ internal class LLFirDesignatedSupertypeResolverTransformer( } private inner class DesignationCollector { - private val visited = mutableMapOf() + private val visited = mutableMapOf() private val toVisit = mutableListOf() fun collect(designation: FirDesignationWithFile): Collection { @@ -178,7 +178,7 @@ internal class LLFirDesignatedSupertypeResolverTransformer( checkIsResolved(designation.target) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { target.checkPhase(FirResolvePhase.SUPER_TYPES) when (target) { is FirClass -> { diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedTypeResolverTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedTypeResolverTransformer.kt index 5e331789e72..c65539620fc 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedTypeResolverTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedTypeResolverTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -11,7 +11,7 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.lazy.resolve.FirLazyBodie import org.jetbrains.kotlin.analysis.low.level.api.fir.transformers.LLFirLazyTransformer.Companion.updatePhaseDeep import org.jetbrains.kotlin.analysis.low.level.api.fir.util.* import org.jetbrains.kotlin.fir.FirElement -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirSession import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.resolve.ScopeSession @@ -61,7 +61,7 @@ internal class LLFirDesignatedTypeResolverTransformer( return super.transformTypeRef(typeRef, data) } - override fun checkIsResolved(target: FirElementWithResolvePhase) { + override fun checkIsResolved(target: FirElementWithResolveState) { target.checkPhase(FirResolvePhase.TYPES) when (target) { is FirCallableDeclaration -> { diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirLazyTransformer.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirLazyTransformer.kt index b18447cf593..fece9b7227d 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirLazyTransformer.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirLazyTransformer.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -8,7 +8,7 @@ package org.jetbrains.kotlin.analysis.low.level.api.fir.transformers import org.jetbrains.annotations.TestOnly import org.jetbrains.kotlin.analysis.low.level.api.fir.LLFirPhaseRunner import org.jetbrains.kotlin.fir.FirElement -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.declarations.impl.FirDefaultPropertyAccessor import org.jetbrains.kotlin.fir.visitors.FirVisitor @@ -16,9 +16,9 @@ import org.jetbrains.kotlin.fir.visitors.FirVisitor internal interface LLFirLazyTransformer { fun transformDeclaration(phaseRunner: LLFirPhaseRunner) - fun checkIsResolved(target: FirElementWithResolvePhase) + fun checkIsResolved(target: FirElementWithResolveState) - fun checkNestedDeclarationsAreResolved(target: FirElementWithResolvePhase) { + fun checkNestedDeclarationsAreResolved(target: FirElementWithResolveState) { if (target !is FirDeclaration) return checkFunctionParametersAreResolved(target) checkPropertyAccessorsAreResolved(target) @@ -63,17 +63,22 @@ internal interface LLFirLazyTransformer { companion object { private object WholeTreePhaseUpdater : FirVisitor() { override fun visitElement(element: FirElement, data: FirResolvePhase) { - if (element is FirElementWithResolvePhase) { + if (element is FirElementWithResolveState) { if (element.resolvePhase >= data && element !is FirDefaultPropertyAccessor) return - element.replaceResolvePhase(data) + + @OptIn(ResolveStateAccess::class) + element.resolveState = data.asResolveState() } + element.acceptChildren(this, data) } } - private fun updatePhaseForNonLocals(element: FirElementWithResolvePhase, newPhase: FirResolvePhase) { + private fun updatePhaseForNonLocals(element: FirElementWithResolveState, newPhase: FirResolvePhase) { if (element.resolvePhase >= newPhase) return - element.replaceResolvePhase(newPhase) + + @OptIn(ResolveStateAccess::class) + element.resolveState = newPhase.asResolveState() if (element is FirTypeParameterRefsOwner) { element.typeParameters.forEach { typeParameter -> @@ -101,7 +106,7 @@ internal interface LLFirLazyTransformer { } } - fun updatePhaseDeep(element: FirElementWithResolvePhase, newPhase: FirResolvePhase, withNonLocalDeclarations: Boolean = false) { + fun updatePhaseDeep(element: FirElementWithResolveState, newPhase: FirResolvePhase, withNonLocalDeclarations: Boolean = false) { if (withNonLocalDeclarations) { WholeTreePhaseUpdater.visitElement(element, newPhase) } else { @@ -114,7 +119,7 @@ internal interface LLFirLazyTransformer { val DUMMY = object : LLFirLazyTransformer { override fun transformDeclaration(phaseRunner: LLFirPhaseRunner) = Unit - override fun checkIsResolved(target: FirElementWithResolvePhase) = error("Not implemented") + override fun checkIsResolved(target: FirElementWithResolveState) = error("Not implemented") } } } diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/FirNonLocalDeclarationSearcher.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/FirNonLocalDeclarationSearcher.kt index 8cf603a0772..71fdc384cf2 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/FirNonLocalDeclarationSearcher.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/FirNonLocalDeclarationSearcher.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -79,23 +79,24 @@ object FirElementFinder { } } + @OptIn(ResolveStateAccess::class) override fun visitRegularClass(regularClass: FirRegularClass) { // Checking the rest super types that weren't resolved on the first OUTER_CLASS_ARGUMENTS_REQUIRED check in FirTypeResolver - val oldResolvePhase = regularClass.resolvePhase + val oldResolveState = regularClass.resolveState val oldList = regularClass.superTypeRefs.toList() try { super.visitRegularClass(regularClass) } catch (e: ConcurrentModificationException) { - val newResolvePhase = regularClass.resolvePhase + val newResolveState = regularClass.resolveState val newList = regularClass.superTypeRefs.toList() throw IllegalStateException( """ CME while traversing superTypeRefs of declaration=${regularClass.render()}: classId: ${regularClass.classId}, - oldPhase: $oldResolvePhase, oldList: ${oldList.joinToString(",", "[", "]") { it.render() }}, - newPhase: $newResolvePhase, newList: ${newList.joinToString(",", "[", "]") { it.render() }} + oldState: $oldResolveState, oldList: ${oldList.joinToString(",", "[", "]") { it.render() }}, + newState: $newResolveState, newList: ${newList.joinToString(",", "[", "]") { it.render() }} """.trimIndent(), e ) } diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/LLFirResolvePhaseChecker.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/LLFirResolvePhaseChecker.kt index bda80403319..43d5fc40c1d 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/LLFirResolvePhaseChecker.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/LLFirResolvePhaseChecker.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -7,6 +7,7 @@ package org.jetbrains.kotlin.analysis.low.level.api.fir.util import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.resolvePhase internal object LLFirResolvePhaseChecker { fun requireResolvePhase(firDeclaration: FirDeclaration, requiredPhase: FirResolvePhase) { diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/containingFileUtils.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/containingFileUtils.kt index d99965daefc..1abfd3f0f04 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/containingFileUtils.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/containingFileUtils.kt @@ -1,19 +1,19 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.analysis.low.level.api.fir.util import org.jetbrains.kotlin.analysis.low.level.api.fir.sessions.llFirResolvableSession -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirFileAnnotationsContainer import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.psi import org.jetbrains.kotlin.fir.resolve.providers.firProvider import org.jetbrains.kotlin.psi.KtFile -fun FirElementWithResolvePhase.getContainingFile(): FirFile? { +fun FirElementWithResolveState.getContainingFile(): FirFile? { val provider = moduleData.session.firProvider return when (this) { is FirFile -> this diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/exceptionUtils.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/exceptionUtils.kt index f03fcb5cfa1..4db3327d856 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/exceptionUtils.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/exceptionUtils.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -13,7 +13,7 @@ import org.jetbrains.kotlin.analysis.utils.errors.buildErrorWithAttachment import org.jetbrains.kotlin.analysis.utils.errors.withKtModuleEntry import org.jetbrains.kotlin.analysis.utils.errors.withPsiEntry import org.jetbrains.kotlin.fir.FirElement -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.psi import org.jetbrains.kotlin.fir.renderer.ConeTypeRendererForDebugging import org.jetbrains.kotlin.fir.renderer.FirDeclarationRendererWithAttributes @@ -33,7 +33,7 @@ fun ExceptionAttachmentBuilder.withFirEntry(name: String, fir: FirElement) { ).renderElementAsString(it) } withEntry("${name}FirSourceElementKind", fir.source?.kind?.let { it::class.simpleName }) - if (fir is FirElementWithResolvePhase) { + if (fir is FirElementWithResolveState) { withKtModuleEntry("${name}KtModule", fir.llFirModuleData.ktModule) } withPsiEntry("${name}Psi", fir.psi) diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/firCheckResolvedUtils.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/firCheckResolvedUtils.kt index 102bec9a8a3..58f779cda48 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/firCheckResolvedUtils.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/firCheckResolvedUtils.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -8,7 +8,7 @@ package org.jetbrains.kotlin.analysis.low.level.api.fir.util import org.jetbrains.kotlin.analysis.utils.errors.ExceptionAttachmentBuilder import org.jetbrains.kotlin.analysis.utils.errors.checkWithAttachmentBuilder import org.jetbrains.kotlin.fir.FirAnnotationContainer -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.contracts.FirResolvedContractDescription import org.jetbrains.kotlin.fir.contracts.impl.FirEmptyContractDescription import org.jetbrains.kotlin.fir.declarations.* @@ -21,7 +21,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef internal inline fun checkTypeRefIsResolved( typeRef: FirTypeRef, typeRefName: String, - owner: FirElementWithResolvePhase, + owner: FirElementWithResolveState, acceptImplicitTypeRef: Boolean = false, extraAttachment: ExceptionAttachmentBuilder.() -> Unit = {} ) { diff --git a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/firDeclarationDesignationUtils.kt b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/firDeclarationDesignationUtils.kt index a83cd7dccf5..b74312822fe 100644 --- a/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/firDeclarationDesignationUtils.kt +++ b/analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/firDeclarationDesignationUtils.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -7,17 +7,20 @@ package org.jetbrains.kotlin.analysis.low.level.api.fir.util import org.jetbrains.kotlin.analysis.low.level.api.fir.api.FirDesignation import org.jetbrains.kotlin.analysis.utils.errors.checkWithAttachmentBuilder -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.declarations.FirCallableDeclaration import org.jetbrains.kotlin.fir.declarations.FirClassLikeDeclaration import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess +import org.jetbrains.kotlin.fir.declarations.resolvePhase -internal fun FirElementWithResolvePhase.checkPhase(requiredResolvePhase: FirResolvePhase) { - val declarationResolvePhase = resolvePhase +internal fun FirElementWithResolveState.checkPhase(requiredResolvePhase: FirResolvePhase) { + @OptIn(ResolveStateAccess::class) + val declarationResolveState = resolveState checkWithAttachmentBuilder( - declarationResolvePhase >= requiredResolvePhase, - { "At least $requiredResolvePhase expected but $declarationResolvePhase found for ${this::class.simpleName}" } + declarationResolveState.resolvePhase >= requiredResolvePhase, + { "At least $requiredResolvePhase expected but $declarationResolveState found for ${this::class.simpleName}" }, ) { withFirEntry("firDeclaration", this@checkPhase) } @@ -34,8 +37,10 @@ internal fun FirDesignation.checkDesignationPhase(firResolvePhase: FirResolvePha internal fun FirDesignation.checkDesignationPhaseForClasses(firResolvePhase: FirResolvePhase) { checkPathPhase(firResolvePhase) if (target is FirClassLikeDeclaration) { - check(target.resolvePhase >= firResolvePhase) { - "Expected $firResolvePhase but found ${target.resolvePhase}" + @OptIn(ResolveStateAccess::class) + val resolveState = target.resolveState + check(resolveState.resolvePhase >= firResolvePhase) { + "Expected $firResolvePhase but found $resolveState" } } } diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/annonymousClass.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/annonymousClass.fir.txt index 7d5e6353430..be26e35009a 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/annonymousClass.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/annonymousClass.fir.txt @@ -1,12 +1,12 @@ -FILE: [IMPORTS] annonymousClass.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun x(): R|kotlin/Unit| { - [BODY_RESOLVE] lval x: R|| = object : R|kotlin/Any| { - private [BODY_RESOLVE] constructor(): R|| { +FILE: [ResolvedTo(IMPORTS)] annonymousClass.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| { + [ResolvedTo(BODY_RESOLVE)] lval x: R|| = object : R|kotlin/Any| { + private [ResolvedTo(BODY_RESOLVE)] constructor(): R|| { super() } - public final [BODY_RESOLVE] fun foo(): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| { } } diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.fir.txt index ad54cc5ca43..d445cf93769 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.fir.txt @@ -1,18 +1,18 @@ -FILE: [IMPORTS] class.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] class B : R|kotlin/Any| { - public [BODY_RESOLVE] constructor(): R|B| { +FILE: [ResolvedTo(IMPORTS)] class.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| { super() } - public final [BODY_RESOLVE] fun q(): { + public final [ResolvedTo(BODY_RESOLVE)] fun q(): { } - private final [BODY_RESOLVE] val y: = this@R|/B|.R|/B.q|() - private [BODY_RESOLVE] get(): + private final [ResolvedTo(BODY_RESOLVE)] val y: = this@R|/B|.R|/B.q|() + private [ResolvedTo(BODY_RESOLVE)] get(): - public final [BODY_RESOLVE] fun foo([BODY_RESOLVE] a: ): { - ^foo R|kotlin/with#|<, >(R|/a|, = [BODY_RESOLVE] with@fun .(): { + public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] a: ): { + ^foo R|kotlin/with#|<, >(R|/a|, = [ResolvedTo(BODY_RESOLVE)] with@fun .(): { ^ #(String(a), this@R|/B|.R|/B.y|) } ) diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.out_of_src_roots.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.out_of_src_roots.fir.txt index b5c4f739841..2dc616d8b31 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.out_of_src_roots.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.out_of_src_roots.fir.txt @@ -1,18 +1,18 @@ -FILE: [IMPORTS] class.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] class B : R|kotlin/Any| { - public [BODY_RESOLVE] constructor(): R|B| { +FILE: [ResolvedTo(IMPORTS)] class.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| { super() } - public final [BODY_RESOLVE] fun q(): { + public final [ResolvedTo(BODY_RESOLVE)] fun q(): { } - private final [BODY_RESOLVE] val y: = this@R|/B|.R|/B.q|() - private [BODY_RESOLVE] get(): + private final [ResolvedTo(BODY_RESOLVE)] val y: = this@R|/B|.R|/B.q|() + private [ResolvedTo(BODY_RESOLVE)] get(): - public final [BODY_RESOLVE] fun foo([BODY_RESOLVE] a: ): { - ^foo #(R|/a|, = [BODY_RESOLVE] with@fun (): { + public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] a: ): { + ^foo #(R|/a|, = [ResolvedTo(BODY_RESOLVE)] with@fun (): { ^ #(String(a), this@R|/B|.R|/B.y|) } ) diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/constructorParameter.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/constructorParameter.fir.txt index f493b2d62cb..bd9d0bda2c6 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/constructorParameter.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/constructorParameter.fir.txt @@ -1,11 +1,11 @@ -FILE: [IMPORTS] constructorParameter.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] class A : R|kotlin/Any| { - public [BODY_RESOLVE] constructor([BODY_RESOLVE] x: R|kotlin/String|): R|A| { +FILE: [ResolvedTo(IMPORTS)] constructorParameter.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/String|): R|A| { super() } - public final [BODY_RESOLVE] val x: R|kotlin/String| = R|/x| - public [BODY_RESOLVE] get(): R|kotlin/String| + public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/String| = R|/x| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String| } diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/enum.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/enum.fir.txt index 4691bb7ed18..4e2cb12a4d2 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/enum.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/enum.fir.txt @@ -1,27 +1,27 @@ -FILE: [IMPORTS] enum.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] enum class Enum : R|kotlin/Enum| { - private [BODY_RESOLVE] constructor([BODY_RESOLVE] x: R|kotlin/Int|): R|Enum| { +FILE: [ResolvedTo(IMPORTS)] enum.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] enum class Enum : R|kotlin/Enum| { + private [ResolvedTo(BODY_RESOLVE)] constructor([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Int|): R|Enum| { super|>() } - public final [BODY_RESOLVE] val x: R|kotlin/Int| = R|/x| - public [BODY_RESOLVE] get(): R|kotlin/Int| + public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/Int| = R|/x| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| - public final static [BODY_RESOLVE] enum entry A: R|Enum| = object : R|Enum| { - private [BODY_RESOLVE] constructor(): R|| { + public final static [ResolvedTo(BODY_RESOLVE)] enum entry A: R|Enum| = object : R|Enum| { + private [ResolvedTo(BODY_RESOLVE)] constructor(): R|| { super(Int(1)) } } - public final static [BODY_RESOLVE] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(BODY_RESOLVE)] fun values(): R|kotlin/Array| { } - public final static [BODY_RESOLVE] fun valueOf([BODY_RESOLVE] value: R|kotlin/String|): R|Enum| { + public final static [ResolvedTo(BODY_RESOLVE)] fun valueOf([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|Enum| { } - public final static [BODY_RESOLVE] val entries: R|kotlin/enums/EnumEntries| - public [BODY_RESOLVE] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(BODY_RESOLVE)] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/enums/EnumEntries| } diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/funWithoutTypes.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/funWithoutTypes.fir.txt index aa943f6a725..7f807a453d7 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/funWithoutTypes.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/funWithoutTypes.fir.txt @@ -1,4 +1,4 @@ -FILE: [IMPORTS] funWithoutTypes.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun main(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] funWithoutTypes.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun main(): R|kotlin/Unit| { } diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionValueParameter.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionValueParameter.fir.txt index 7d4e6211043..ddd10919fe0 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionValueParameter.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionValueParameter.fir.txt @@ -1,13 +1,13 @@ -FILE: [IMPORTS] functionValueParameter.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun bar([BODY_RESOLVE] a: R|kotlin/Int|, [BODY_RESOLVE] b: R|(kotlin/Boolean) -> kotlin/Unit|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] functionValueParameter.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun bar([ResolvedTo(BODY_RESOLVE)] a: R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] b: R|(kotlin/Boolean) -> kotlin/Unit|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] class A : R|kotlin/Any| { - public [BODY_RESOLVE] constructor(): R|A| { + public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| { super() } - public final [BODY_RESOLVE] fun foo([BODY_RESOLVE] x: R|kotlin/String|, [BODY_RESOLVE] y: R|() -> kotlin/String|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/String|, [ResolvedTo(BODY_RESOLVE)] y: R|() -> kotlin/String|): R|kotlin/Unit| { } } diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionWithImplicitType.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionWithImplicitType.fir.txt index 237451e6ad9..c3d85ab1841 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionWithImplicitType.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionWithImplicitType.fir.txt @@ -1,7 +1,7 @@ -FILE: [IMPORTS] functionWithImplicitType.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun <[BODY_RESOLVE] T> checkSubtype([BODY_RESOLVE] t: R|T|): R|T| { +FILE: [ResolvedTo(IMPORTS)] functionWithImplicitType.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T> checkSubtype([ResolvedTo(BODY_RESOLVE)] t: R|T|): R|T| { ^checkSubtype R|/t| } - public final [BODY_RESOLVE] val ab: R|kotlin/collections/List?| = R|/checkSubtype|?|>(Q|java/util/Collections|.R|java/util/Collections.emptyList|()) - public [BODY_RESOLVE] get(): R|kotlin/collections/List?| + public final [ResolvedTo(BODY_RESOLVE)] val ab: R|kotlin/collections/List?| = R|/checkSubtype|?|>(Q|java/util/Collections|.R|java/util/Collections.emptyList|()) + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/collections/List?| diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionWithImplicitType.out_of_src_roots.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionWithImplicitType.out_of_src_roots.fir.txt index 26d2daa3840..5923a7cc90b 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionWithImplicitType.out_of_src_roots.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/functionWithImplicitType.out_of_src_roots.fir.txt @@ -1,7 +1,7 @@ -FILE: [IMPORTS] functionWithImplicitType.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun <[BODY_RESOLVE] T> checkSubtype([BODY_RESOLVE] t: R|T|): R|T| { +FILE: [ResolvedTo(IMPORTS)] functionWithImplicitType.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T> checkSubtype([ResolvedTo(BODY_RESOLVE)] t: R|T|): R|T| { ^checkSubtype R|/t| } - public final [BODY_RESOLVE] val ab: R|kotlin/collections/List?| = R|/checkSubtype#|?|>(#.#()) - public [BODY_RESOLVE] get(): R|kotlin/collections/List?| + public final [ResolvedTo(BODY_RESOLVE)] val ab: R|kotlin/collections/List?| = R|/checkSubtype#|?|>(#.#()) + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/collections/List?| diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdaInImplicitFunBody.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdaInImplicitFunBody.fir.txt index 08b282e9b54..e7589fff2d1 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdaInImplicitFunBody.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdaInImplicitFunBody.fir.txt @@ -1,19 +1,19 @@ -FILE: [IMPORTS] lambdaInImplicitFunBody.kt - [BODY_RESOLVE] annotations container - public final inline [BODY_RESOLVE] fun <[BODY_RESOLVE] T, [BODY_RESOLVE] R> with([BODY_RESOLVE] receiver: R|T|, [BODY_RESOLVE] block: R|T.() -> R|): R|R| { +FILE: [ResolvedTo(IMPORTS)] lambdaInImplicitFunBody.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> with([ResolvedTo(BODY_RESOLVE)] receiver: R|T|, [ResolvedTo(BODY_RESOLVE)] block: R|T.() -> R|): R|R| { ^with R|/block|.R|SubstitutionOverride|(R|/receiver|) } - public final inline [BODY_RESOLVE] fun <[BODY_RESOLVE] T, [BODY_RESOLVE] R> R|T|.let([BODY_RESOLVE] block: R|(T) -> R|): R|R| { + public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> R|T|.let([ResolvedTo(BODY_RESOLVE)] block: R|(T) -> R|): R|R| { ^let R|/block|.R|SubstitutionOverride|(this@R|/let|) } - public final [BODY_RESOLVE] class B : R|kotlin/Any| { - public [BODY_RESOLVE] constructor(): R|B| { + public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| { super() } - public final [BODY_RESOLVE] fun foo([BODY_RESOLVE] a: R|kotlin/Int|): R|kotlin/String| { - ^foo R|/with|(R|/a|, = [BODY_RESOLVE] with@fun R|kotlin/Int|.(): R|kotlin/String| { - ^ this@R|special/anonymous|.R|kotlin/Int.toString|().R|/let|( = [BODY_RESOLVE] let@fun ([BODY_RESOLVE] it: R|kotlin/String|): R|kotlin/String| { + public final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] a: R|kotlin/Int|): R|kotlin/String| { + ^foo R|/with|(R|/a|, = [ResolvedTo(BODY_RESOLVE)] with@fun R|kotlin/Int|.(): R|kotlin/String| { + ^ this@R|special/anonymous|.R|kotlin/Int.toString|().R|/let|( = [ResolvedTo(BODY_RESOLVE)] let@fun ([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/String|): R|kotlin/String| { ^ R|/it| } ) diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdaInImplicitPropertyBody.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdaInImplicitPropertyBody.fir.txt index 0f47b65e527..e9480a12238 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdaInImplicitPropertyBody.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdaInImplicitPropertyBody.fir.txt @@ -1,26 +1,26 @@ -FILE: [IMPORTS] lambdaInImplicitPropertyBody.kt - [BODY_RESOLVE] annotations container - public final inline [BODY_RESOLVE] fun <[BODY_RESOLVE] T, [BODY_RESOLVE] R> with([BODY_RESOLVE] receiver: R|T|, [BODY_RESOLVE] block: R|T.() -> R|): R|R| { +FILE: [ResolvedTo(IMPORTS)] lambdaInImplicitPropertyBody.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> with([ResolvedTo(BODY_RESOLVE)] receiver: R|T|, [ResolvedTo(BODY_RESOLVE)] block: R|T.() -> R|): R|R| { ^with R|/block|.R|SubstitutionOverride|(R|/receiver|) } - public final inline [BODY_RESOLVE] fun <[BODY_RESOLVE] T, [BODY_RESOLVE] R> R|T|.let([BODY_RESOLVE] block: R|(T) -> R|): R|R| { + public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> R|T|.let([ResolvedTo(BODY_RESOLVE)] block: R|(T) -> R|): R|R| { ^let R|/block|.R|SubstitutionOverride|(this@R|/let|) } - public final [BODY_RESOLVE] class B : R|kotlin/Any| { - public [BODY_RESOLVE] constructor(): R|B| { + public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|B| { super() } - public final [BODY_RESOLVE] val a: R|kotlin/Int| = Int(10) - public [BODY_RESOLVE] get(): R|kotlin/Int| + public final [ResolvedTo(BODY_RESOLVE)] val a: R|kotlin/Int| = Int(10) + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| - public final [BODY_RESOLVE] val x: R|kotlin/String| = R|/with|(this@R|/B|.R|/B.a|, = [BODY_RESOLVE] with@fun R|kotlin/Int|.(): R|kotlin/String| { - ^ this@R|special/anonymous|.R|kotlin/Int.toString|().R|/let|( = [BODY_RESOLVE] let@fun ([BODY_RESOLVE] it: R|kotlin/String|): R|kotlin/String| { + public final [ResolvedTo(BODY_RESOLVE)] val x: R|kotlin/String| = R|/with|(this@R|/B|.R|/B.a|, = [ResolvedTo(BODY_RESOLVE)] with@fun R|kotlin/Int|.(): R|kotlin/String| { + ^ this@R|special/anonymous|.R|kotlin/Int.toString|().R|/let|( = [ResolvedTo(BODY_RESOLVE)] let@fun ([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/String|): R|kotlin/String| { ^ R|/it| } ) } ) - public [BODY_RESOLVE] get(): R|kotlin/String| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String| } diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdasInWithBodyFunction.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdasInWithBodyFunction.fir.txt index ff99a887f61..617ccafd5b1 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdasInWithBodyFunction.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/lambdasInWithBodyFunction.fir.txt @@ -1,24 +1,24 @@ -FILE: [IMPORTS] lambdasInWithBodyFunction.kt - [BODY_RESOLVE] annotations container - public final inline [BODY_RESOLVE] fun <[BODY_RESOLVE] T, [BODY_RESOLVE] R> with([BODY_RESOLVE] receiver: R|T|, [BODY_RESOLVE] block: R|T.() -> R|): R|R| { +FILE: [ResolvedTo(IMPORTS)] lambdasInWithBodyFunction.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> with([ResolvedTo(BODY_RESOLVE)] receiver: R|T|, [ResolvedTo(BODY_RESOLVE)] block: R|T.() -> R|): R|R| { ^with R|/block|.R|SubstitutionOverride|(R|/receiver|) } - public final inline [BODY_RESOLVE] fun <[BODY_RESOLVE] T, [BODY_RESOLVE] R> R|T|.let([BODY_RESOLVE] block: R|(T) -> R|): R|R| { + public final inline [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T, [ResolvedTo(BODY_RESOLVE)] R> R|T|.let([ResolvedTo(BODY_RESOLVE)] block: R|(T) -> R|): R|R| { ^let R|/block|.R|SubstitutionOverride|(this@R|/let|) } - public final [BODY_RESOLVE] class A : R|kotlin/Any| { - public [BODY_RESOLVE] constructor(): R|A| { + public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|A| { super() } - public final [BODY_RESOLVE] fun foo(): R|kotlin/Unit| { - [BODY_RESOLVE] lval a: R|kotlin/Int| = R|/with|(Int(1), = [BODY_RESOLVE] with@fun R|kotlin/Int|.(): R|kotlin/Int| { - ^ this@R|special/anonymous|.R|/let|( = [BODY_RESOLVE] let@fun ([BODY_RESOLVE] it: R|kotlin/Int|): R|kotlin/Int| { + public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| { + [ResolvedTo(BODY_RESOLVE)] lval a: R|kotlin/Int| = R|/with|(Int(1), = [ResolvedTo(BODY_RESOLVE)] with@fun R|kotlin/Int|.(): R|kotlin/Int| { + ^ this@R|special/anonymous|.R|/let|( = [ResolvedTo(BODY_RESOLVE)] let@fun ([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/Int|): R|kotlin/Int| { ^ R|/it| } ) } - ).R|/let|( = [BODY_RESOLVE] let@fun ([BODY_RESOLVE] it: R|kotlin/Int|): R|kotlin/Int| { + ).R|/let|( = [ResolvedTo(BODY_RESOLVE)] let@fun ([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/Int|): R|kotlin/Int| { ^ Int(2) } ) diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/localClass.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/localClass.fir.txt index 9823ea2acba..21f2f3884ed 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/localClass.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/localClass.fir.txt @@ -1,12 +1,12 @@ -FILE: [IMPORTS] localClass.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun x(): R|kotlin/Unit| { - local final [BODY_RESOLVE] class Local : R|kotlin/Any| { - public [BODY_RESOLVE] constructor(): R|Local| { +FILE: [ResolvedTo(IMPORTS)] localClass.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| { + local final [ResolvedTo(BODY_RESOLVE)] class Local : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Local| { super() } - public final [BODY_RESOLVE] fun foo(): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| { } } diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/propertyWithGetterAndSetter.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/propertyWithGetterAndSetter.fir.txt index bec16e13b0a..c6094fb96af 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/propertyWithGetterAndSetter.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/propertyWithGetterAndSetter.fir.txt @@ -1,9 +1,9 @@ -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] var withGetterAndSetter: R|kotlin/Int| = Int(42) - public [BODY_RESOLVE] get(): R|kotlin/Int| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] var withGetterAndSetter: R|kotlin/Int| = Int(42) + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| { ^ F|/withGetterAndSetter| } - public [BODY_RESOLVE] set([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit| { + public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit| { F|/withGetterAndSetter| = R|/value| } diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/propertyWithSetter.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/propertyWithSetter.fir.txt index 58dd2401a2e..ffb495a52c7 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/propertyWithSetter.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/propertyWithSetter.fir.txt @@ -1,26 +1,26 @@ -FILE: [IMPORTS] propertyWithSetter.kt - [BODY_RESOLVE] annotations container - public abstract [BODY_RESOLVE] class Foo : R|kotlin/Any| { - public [BODY_RESOLVE] constructor(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] propertyWithSetter.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public abstract [ResolvedTo(BODY_RESOLVE)] class Foo : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Foo| { super() } - public abstract [BODY_RESOLVE] var id: R|kotlin/Int| - public [BODY_RESOLVE] get(): R|kotlin/Int| - protected [BODY_RESOLVE] set([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit| + public abstract [ResolvedTo(BODY_RESOLVE)] var id: R|kotlin/Int| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| + protected [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit| } - public final [BODY_RESOLVE] class Bar : R|Foo| { - public [BODY_RESOLVE] constructor(): R|Bar| { + public final [ResolvedTo(BODY_RESOLVE)] class Bar : R|Foo| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Bar| { super() } - public open override [BODY_RESOLVE] var id: R|kotlin/Int| = Int(1) - public [BODY_RESOLVE] get(): R|kotlin/Int| - public [BODY_RESOLVE] set([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit| + public open override [ResolvedTo(BODY_RESOLVE)] var id: R|kotlin/Int| = Int(1) + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| + public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit| } - public final [BODY_RESOLVE] fun test(): R|kotlin/Unit| { - [BODY_RESOLVE] lval bar: R|Bar| = R|/Bar.Bar|() + public final [ResolvedTo(BODY_RESOLVE)] fun test(): R|kotlin/Unit| { + [ResolvedTo(BODY_RESOLVE)] lval bar: R|Bar| = R|/Bar.Bar|() R|/bar|.R|/Bar.id| = Int(1) } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/annotationParameters.txt b/analysis/low-level-api-fir/testdata/lazyResolve/annotationParameters.txt index 5e4cb77461a..80f033b1483 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/annotationParameters.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/annotationParameters.txt @@ -1,554 +1,554 @@ RAW_FIR: -FILE: [RAW_FIR] annotationParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] enum class X : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(RAW_FIR)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [RAW_FIR] [ContainingClassKey=X] enum entry A: R|X| - public final static [RAW_FIR] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=X] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|X| { } - public final static [RAW_FIR] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public? final? [RAW_FIR] class B : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? final? [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @Anno(LAZY_EXPRESSION) public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - @Anno(LAZY_EXPRESSION) public? final? [RAW_FIR] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } IMPORTS: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] enum class X : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [RAW_FIR] [ContainingClassKey=X] enum entry A: R|X| - public final static [RAW_FIR] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=X] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|X| { } - public final static [RAW_FIR] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public? final? [RAW_FIR] class B : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? final? [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @Anno(LAZY_EXPRESSION) public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - @Anno(LAZY_EXPRESSION) public? final? [RAW_FIR] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] enum class X : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [RAW_FIR] [ContainingClassKey=X] enum entry A: R|X| - public final static [RAW_FIR] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=X] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|X| { } - public final static [RAW_FIR] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public? final? [RAW_FIR] class B : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? final? [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @Anno(LAZY_EXPRESSION) public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - @Anno(LAZY_EXPRESSION) public? final? [RAW_FIR] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } COMPANION_GENERATION: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] enum class X : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [RAW_FIR] [ContainingClassKey=X] enum entry A: R|X| - public final static [RAW_FIR] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=X] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|X| { } - public final static [RAW_FIR] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public? final? [RAW_FIR] class B : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? final? [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @Anno(LAZY_EXPRESSION) public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - @Anno(LAZY_EXPRESSION) public? final? [RAW_FIR] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } SUPER_TYPES: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] enum class X : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [RAW_FIR] [ContainingClassKey=X] enum entry A: R|X| - public final static [RAW_FIR] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=X] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|X| { } - public final static [RAW_FIR] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public? final? [RAW_FIR] class B : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? final? [ResolvedTo(RAW_FIR)] class B : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @Anno(LAZY_EXPRESSION) public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - @Anno(LAZY_EXPRESSION) public? final? [RAW_FIR] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } TYPES: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] enum class X : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [RAW_FIR] [ContainingClassKey=X] enum entry A: R|X| - public final static [RAW_FIR] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=X] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|X| { } - public final static [RAW_FIR] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public? final? [SUPER_TYPES] class B : R|kotlin/Any| { - public? [SUPER_TYPES] [ContainingClassKey=B] constructor(): R|B| { + public? final? [ResolvedTo(SUPER_TYPES)] class B : R|kotlin/Any| { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @R|Anno|(LAZY_EXPRESSION) public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @R|Anno|(LAZY_EXPRESSION) public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - @Anno(LAZY_EXPRESSION) public? final? [SUPER_TYPES] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(SUPER_TYPES)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } STATUS: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] enum class X : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [RAW_FIR] [ContainingClassKey=X] enum entry A: R|X| - public final static [RAW_FIR] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=X] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|X| { } - public final static [RAW_FIR] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public final [SUPER_TYPES] class B : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=B] constructor(): R|B| { + public final [ResolvedTo(SUPER_TYPES)] class B : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @R|Anno|(LAZY_EXPRESSION) public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @R|Anno|(LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - @R|Anno|(LAZY_EXPRESSION) public final [TYPES] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @R|Anno|(LAZY_EXPRESSION) public final [ResolvedTo(TYPES)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] enum class X : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [RAW_FIR] [ContainingClassKey=X] enum entry A: R|X| - public final static [RAW_FIR] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=X] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|X| { } - public final static [RAW_FIR] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public final [SUPER_TYPES] class B : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=B] constructor(): R|B| { + public final [ResolvedTo(SUPER_TYPES)] class B : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @R|Anno|(X#.A#) public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { + @R|Anno|(X#.A#) public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { } - @R|Anno|(LAZY_EXPRESSION) public final [TYPES] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @R|Anno|(LAZY_EXPRESSION) public final [ResolvedTo(TYPES)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public final [STATUS] enum class X : R|kotlin/Enum| { - private [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [STATUS] [ContainingClassKey=X] enum entry A: R|X| - public final static [STATUS] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [STATUS] [ContainingClassKey=X] fun valueOf([STATUS] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] fun valueOf([ResolvedTo(STATUS)] value: R|kotlin/String|): R|X| { } - public final static [STATUS] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [STATUS] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(STATUS)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public final [STATUS] class B : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=B] constructor(): R|B| { + public final [ResolvedTo(STATUS)] class B : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @R|Anno|(Q|X|.R|/X.A|) public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { + @R|Anno|(Q|X|.R|/X.A|) public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { } - @R|Anno|(LAZY_EXPRESSION) public final [STATUS] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @R|Anno|(LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } CONTRACTS: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public final [STATUS] enum class X : R|kotlin/Enum| { - private [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [STATUS] [ContainingClassKey=X] enum entry A: R|X| - public final static [STATUS] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [STATUS] [ContainingClassKey=X] fun valueOf([STATUS] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] fun valueOf([ResolvedTo(STATUS)] value: R|kotlin/String|): R|X| { } - public final static [STATUS] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [STATUS] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(STATUS)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public final [STATUS] class B : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=B] constructor(): R|B| { + public final [ResolvedTo(STATUS)] class B : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @R|Anno|(Q|X|.R|/X.A|) public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { + @R|Anno|(Q|X|.R|/X.A|) public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { } - @R|Anno|(LAZY_EXPRESSION) public final [STATUS] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @R|Anno|(LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public final [STATUS] enum class X : R|kotlin/Enum| { - private [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [STATUS] [ContainingClassKey=X] enum entry A: R|X| - public final static [STATUS] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [STATUS] [ContainingClassKey=X] fun valueOf([STATUS] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] fun valueOf([ResolvedTo(STATUS)] value: R|kotlin/String|): R|X| { } - public final static [STATUS] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [STATUS] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(STATUS)] get(): R|kotlin/enums/EnumEntries| } - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor([RAW_FIR] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Anno.args] args: A.X): R|Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): A.X + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val args: A.X = R|/args| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): A.X } - public final [STATUS] class B : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=B] constructor(): R|B| { + public final [ResolvedTo(STATUS)] class B : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @R|Anno|(Q|X|.R|/X.A|) public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + @R|Anno|(Q|X|.R|/X.A|) public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } - @R|Anno|(LAZY_EXPRESSION) public final [STATUS] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @R|Anno|(LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public final [STATUS] enum class X : R|kotlin/Enum| { - private [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [STATUS] [ContainingClassKey=X] enum entry A: R|X| - public final static [STATUS] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [STATUS] [ContainingClassKey=X] fun valueOf([STATUS] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] fun valueOf([ResolvedTo(STATUS)] value: R|kotlin/String|): R|X| { } - public final static [STATUS] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [STATUS] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(STATUS)] get(): R|kotlin/enums/EnumEntries| } - public final [SUPER_TYPES] annotation class Anno : R|kotlin/Annotation| { - public [STATUS] [ContainingClassKey=Anno] constructor([STATUS] [CorrespondingProperty=/Anno.args] args: ): R|Anno| { + public final [ResolvedTo(SUPER_TYPES)] annotation class Anno : R|kotlin/Annotation| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.args] args: ): R|Anno| { LAZY_super } - public final [TYPES] [IsFromPrimaryConstructor=true] val args: = R|/args| - public [TYPES] [ContainingClassKey=Anno] get(): + public final [ResolvedTo(TYPES)] [IsFromPrimaryConstructor=true] val args: = R|/args| + public [ResolvedTo(TYPES)] [ContainingClassKey=Anno] get(): } - public final [STATUS] class B : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=B] constructor(): R|B| { + public final [ResolvedTo(STATUS)] class B : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @R|Anno|(args = Q|X|.R|/X.A|) public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { + @R|Anno|(args = Q|X|.R|/X.A|) public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { } - @R|Anno|(X#.A#) public final [STATUS] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @R|Anno|(X#.A#) public final [ResolvedTo(STATUS)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } BODY_RESOLVE: -FILE: [IMPORTS] annotationParameters.kt - [RAW_FIR] annotations container - public final [STATUS] enum class X : R|kotlin/Enum| { - private [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super|> } - public final static [STATUS] [ContainingClassKey=X] enum entry A: R|X| - public final static [STATUS] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [STATUS] [ContainingClassKey=X] fun valueOf([STATUS] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] fun valueOf([ResolvedTo(STATUS)] value: R|kotlin/String|): R|X| { } - public final static [STATUS] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [STATUS] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(STATUS)] get(): R|kotlin/enums/EnumEntries| } - public final [SUPER_TYPES] annotation class Anno : R|kotlin/Annotation| { - public [STATUS] [ContainingClassKey=Anno] constructor([STATUS] [CorrespondingProperty=/Anno.args] args: ): R|Anno| { + public final [ResolvedTo(SUPER_TYPES)] annotation class Anno : R|kotlin/Annotation| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Anno.args] args: ): R|Anno| { LAZY_super } - public final [TYPES] [IsFromPrimaryConstructor=true] val args: = R|/args| - public [TYPES] [ContainingClassKey=Anno] get(): + public final [ResolvedTo(TYPES)] [IsFromPrimaryConstructor=true] val args: = R|/args| + public [ResolvedTo(TYPES)] [ContainingClassKey=Anno] get(): } - public final [STATUS] class B : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=B] constructor(): R|B| { + public final [ResolvedTo(STATUS)] class B : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } - @R|Anno|(args = Q|X|.R|/X.A|) public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + @R|Anno|(args = Q|X|.R|/X.A|) public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } - @R|Anno|(X#.A#) public final [STATUS] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } + @R|Anno|(X#.A#) public final [ResolvedTo(STATUS)] fun foo(): R|kotlin/Unit| { LAZY_BLOCK } } FILE RAW TO BODY: -FILE: [IMPORTS] annotationParameters.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] enum class X : R|kotlin/Enum| { - private [BODY_RESOLVE] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] annotationParameters.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] enum class X : R|kotlin/Enum| { + private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] constructor(): R|X| { super|>() } - public final static [BODY_RESOLVE] [ContainingClassKey=X] enum entry A: R|X| - public final static [BODY_RESOLVE] [ContainingClassKey=X] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] enum entry A: R|X| + public final static [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] fun values(): R|kotlin/Array| { } - public final static [BODY_RESOLVE] [ContainingClassKey=X] fun valueOf([BODY_RESOLVE] value: R|kotlin/String|): R|X| { + public final static [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] fun valueOf([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|X| { } - public final static [BODY_RESOLVE] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| - public [BODY_RESOLVE] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/enums/EnumEntries| } - public final [BODY_RESOLVE] annotation class Anno : R|kotlin/Annotation| { - public [BODY_RESOLVE] [ContainingClassKey=Anno] constructor([BODY_RESOLVE] [CorrespondingProperty=/Anno.args] args: ): R|Anno| { + public final [ResolvedTo(BODY_RESOLVE)] annotation class Anno : R|kotlin/Annotation| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Anno] constructor([ResolvedTo(BODY_RESOLVE)] [CorrespondingProperty=/Anno.args] args: ): R|Anno| { super() } - public final [BODY_RESOLVE] [IsFromPrimaryConstructor=true] val args: = R|/args| - public [BODY_RESOLVE] [ContainingClassKey=Anno] get(): + public final [ResolvedTo(BODY_RESOLVE)] [IsFromPrimaryConstructor=true] val args: = R|/args| + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Anno] get(): } - public final [BODY_RESOLVE] class B : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=B] constructor(): R|B| { + public final [ResolvedTo(BODY_RESOLVE)] class B : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=B] constructor(): R|B| { super() } - @R|Anno|(args = Q|X|.R|/X.A|) public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + @R|Anno|(args = Q|X|.R|/X.A|) public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } - @R|Anno|(args = Q|X|.R|/X.A|) public final [BODY_RESOLVE] fun foo(): R|kotlin/Unit| { + @R|Anno|(args = Q|X|.R|/X.A|) public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| { } } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/annotationWithTypeArgument.txt b/analysis/low-level-api-fir/testdata/lazyResolve/annotationWithTypeArgument.txt index 7fb01e7ed55..e08b9446cb5 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/annotationWithTypeArgument.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/annotationWithTypeArgument.txt @@ -1,202 +1,202 @@ RAW_FIR: -FILE: [RAW_FIR] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(RAW_FIR)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @Anno(LAZY_EXPRESSION) public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @Anno(LAZY_EXPRESSION) public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @Anno(LAZY_EXPRESSION) public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @Anno(LAZY_EXPRESSION) public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @Anno(LAZY_EXPRESSION) public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @Anno(LAZY_EXPRESSION) public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @R|one/Anno|(LAZY_EXPRESSION) public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @R|one/Anno|(LAZY_EXPRESSION) public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @R|one/Anno|(LAZY_EXPRESSION) public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + @R|one/Anno|(LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @R|one/Anno|((Int#)) public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { + @R|one/Anno|((Int#)) public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @R|one/Anno|((Q|kotlin/Int|)) public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { + @R|one/Anno|((Q|kotlin/Int|)) public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { } CONTRACTS: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @R|one/Anno|((Q|kotlin/Int|)) public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { + @R|one/Anno|((Q|kotlin/Int|)) public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno<[RAW_FIR] T : Number> : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor<[RAW_FIR] T : Number>([RAW_FIR] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno<[ResolvedTo(RAW_FIR)] T : Number> : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor<[ResolvedTo(RAW_FIR)] T : Number>([ResolvedTo(RAW_FIR)] [CorrespondingProperty=one/Anno.value] value: KClass): R|one/Anno| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| - public? [RAW_FIR] [ContainingClassKey=Anno] get(): KClass + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: KClass = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] get(): KClass } - @R|one/Anno|((Q|kotlin/Int|)) public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + @R|one/Anno|((Q|kotlin/Int|)) public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public final [TYPES] annotation class Anno<[TYPES] T : R|kotlin/Number|> : R|kotlin/Annotation| { - public [STATUS] [ContainingClassKey=Anno] constructor<[TYPES] T : R|kotlin/Number|>([STATUS] [CorrespondingProperty=one/Anno.value] value: ): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(TYPES)] annotation class Anno<[ResolvedTo(TYPES)] T : R|kotlin/Number|> : R|kotlin/Annotation| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor<[ResolvedTo(TYPES)] T : R|kotlin/Number|>([ResolvedTo(STATUS)] [CorrespondingProperty=one/Anno.value] value: ): R|one/Anno| { LAZY_super } - public final [TYPES] [IsFromPrimaryConstructor=true] val value: = R|/value| - public [TYPES] [ContainingClassKey=Anno] get(): + public final [ResolvedTo(TYPES)] [IsFromPrimaryConstructor=true] val value: = R|/value| + public [ResolvedTo(TYPES)] [ContainingClassKey=Anno] get(): } - @R|one/Anno|(value = (Q|kotlin/Int|)) public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { + @R|one/Anno|(value = (Q|kotlin/Int|)) public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { } BODY_RESOLVE: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [RAW_FIR] annotations container - public final [TYPES] annotation class Anno<[TYPES] T : R|kotlin/Number|> : R|kotlin/Annotation| { - public [STATUS] [ContainingClassKey=Anno] constructor<[TYPES] T : R|kotlin/Number|>([STATUS] [CorrespondingProperty=one/Anno.value] value: ): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(TYPES)] annotation class Anno<[ResolvedTo(TYPES)] T : R|kotlin/Number|> : R|kotlin/Annotation| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor<[ResolvedTo(TYPES)] T : R|kotlin/Number|>([ResolvedTo(STATUS)] [CorrespondingProperty=one/Anno.value] value: ): R|one/Anno| { LAZY_super } - public final [TYPES] [IsFromPrimaryConstructor=true] val value: = R|/value| - public [TYPES] [ContainingClassKey=Anno] get(): + public final [ResolvedTo(TYPES)] [IsFromPrimaryConstructor=true] val value: = R|/value| + public [ResolvedTo(TYPES)] [ContainingClassKey=Anno] get(): } - @R|one/Anno|(value = (Q|kotlin/Int|)) public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + @R|one/Anno|(value = (Q|kotlin/Int|)) public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } FILE RAW TO BODY: -FILE: [IMPORTS] annotationWithTypeArgument.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] annotation class Anno<[BODY_RESOLVE] T : R|kotlin/Number|> : R|kotlin/Annotation| { - public [BODY_RESOLVE] [ContainingClassKey=Anno] constructor<[BODY_RESOLVE] T : R|kotlin/Number|>([BODY_RESOLVE] [CorrespondingProperty=one/Anno.value] value: ): R|one/Anno| { +FILE: [ResolvedTo(IMPORTS)] annotationWithTypeArgument.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] annotation class Anno<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Number|> : R|kotlin/Annotation| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Anno] constructor<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Number|>([ResolvedTo(BODY_RESOLVE)] [CorrespondingProperty=one/Anno.value] value: ): R|one/Anno| { super() } - public final [BODY_RESOLVE] [IsFromPrimaryConstructor=true] val value: = R|/value| - public [BODY_RESOLVE] [ContainingClassKey=Anno] get(): + public final [ResolvedTo(BODY_RESOLVE)] [IsFromPrimaryConstructor=true] val value: = R|/value| + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Anno] get(): } - @R|one/Anno|(value = (Q|kotlin/Int|)) public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + @R|one/Anno|(value = (Q|kotlin/Int|)) public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/annotations.txt b/analysis/low-level-api-fir/testdata/lazyResolve/annotations.txt index 5f53bb77a3b..d658e89a6bd 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/annotations.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/annotations.txt @@ -1,91 +1,91 @@ RAW_FIR: -FILE: [RAW_FIR] annotations.kt +FILE: [ResolvedTo(RAW_FIR)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @Suppress(LAZY_EXPRESSION) public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + [ResolvedTo(RAW_FIR)] annotations container + @Suppress(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @Suppress(LAZY_EXPRESSION) public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + [ResolvedTo(RAW_FIR)] annotations container + @Suppress(LAZY_EXPRESSION) public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @Suppress(LAZY_EXPRESSION) public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + [ResolvedTo(RAW_FIR)] annotations container + @Suppress(LAZY_EXPRESSION) public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @Suppress(LAZY_EXPRESSION) public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + [ResolvedTo(RAW_FIR)] annotations container + @Suppress(LAZY_EXPRESSION) public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @Suppress(LAZY_EXPRESSION) public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + [ResolvedTo(RAW_FIR)] annotations container + @Suppress(LAZY_EXPRESSION) public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @R|kotlin/Suppress|(LAZY_EXPRESSION) public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/Suppress|(LAZY_EXPRESSION) public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @R|kotlin/Suppress|(LAZY_EXPRESSION) public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/Suppress|(LAZY_EXPRESSION) public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @R|kotlin/Suppress|(String(2)) public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/Suppress|(String(2)) public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @R|kotlin/Suppress|(String(2)) public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/Suppress|(String(2)) public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { } CONTRACTS: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @R|kotlin/Suppress|(String(2)) public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/Suppress|(String(2)) public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(LAZY_EXPRESSION) - [RAW_FIR] annotations container - @R|kotlin/Suppress|(String(2)) public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/Suppress|(String(2)) public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(String(1)) - [RAW_FIR] annotations container - @R|kotlin/Suppress|(names = vararg(String(2))) public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/Suppress|(names = vararg(String(2))) public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { } BODY_RESOLVE: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:Suppress(String(1)) - [RAW_FIR] annotations container - @R|kotlin/Suppress|(names = vararg(String(2))) public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/Suppress|(names = vararg(String(2))) public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } FILE RAW TO BODY: -FILE: [IMPORTS] annotations.kt +FILE: [ResolvedTo(IMPORTS)] annotations.kt @FILE:R|kotlin/Suppress|(names = vararg(String(1))) - [BODY_RESOLVE] annotations container - @R|kotlin/Suppress|(names = vararg(String(2))) public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(BODY_RESOLVE)] annotations container + @R|kotlin/Suppress|(names = vararg(String(2))) public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/classMembers.txt b/analysis/low-level-api-fir/testdata/lazyResolve/classMembers.txt index a2514727cf6..eaa91f2373b 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/classMembers.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/classMembers.txt @@ -1,287 +1,287 @@ RAW_FIR: -FILE: [RAW_FIR] classMembers.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(RAW_FIR)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val x: Int = LAZY_EXPRESSION - public? [RAW_FIR] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val x: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } } IMPORTS: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val x: Int = LAZY_EXPRESSION - public? [RAW_FIR] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val x: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val x: Int = LAZY_EXPRESSION - public? [RAW_FIR] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val x: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } } COMPANION_GENERATION: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val x: Int = LAZY_EXPRESSION - public? [RAW_FIR] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val x: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } } SUPER_TYPES: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val x: Int = LAZY_EXPRESSION - public? [RAW_FIR] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val x: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } } TYPES: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] class A : R|kotlin/Any| { - public? [SUPER_TYPES] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] class A : R|kotlin/Any| { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [SUPER_TYPES] val x: Int = LAZY_EXPRESSION - public? [SUPER_TYPES] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] val x: Int = LAZY_EXPRESSION + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=A] get(): Int { LAZY_BLOCK } - public? final? [SUPER_TYPES] fun receive([SUPER_TYPES] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] fun receive([ResolvedTo(SUPER_TYPES)] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [SUPER_TYPES] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] fun functionWithLazyBody(): String { LAZY_BLOCK } } STATUS: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public final [SUPER_TYPES] class A : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(SUPER_TYPES)] class A : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public final [TYPES] val x: R|kotlin/Int| = LAZY_EXPRESSION - public [TYPES] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } + public final [ResolvedTo(TYPES)] val x: R|kotlin/Int| = LAZY_EXPRESSION + public [ResolvedTo(TYPES)] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } - public final [TYPES] fun receive([TYPES] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(TYPES)] fun receive([ResolvedTo(TYPES)] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } - public final [TYPES] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } + public final [ResolvedTo(TYPES)] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public final [SUPER_TYPES] class A : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(SUPER_TYPES)] class A : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public final [TYPES] val x: R|kotlin/Int| = LAZY_EXPRESSION - public [TYPES] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } + public final [ResolvedTo(TYPES)] val x: R|kotlin/Int| = LAZY_EXPRESSION + public [ResolvedTo(TYPES)] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } - public final [TYPES] fun receive([TYPES] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(TYPES)] fun receive([ResolvedTo(TYPES)] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } - public final [TYPES] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } + public final [ResolvedTo(TYPES)] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public final [STATUS] class A : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public final [STATUS] val x: R|kotlin/Int| = LAZY_EXPRESSION - public [STATUS] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] val x: R|kotlin/Int| = LAZY_EXPRESSION + public [ResolvedTo(STATUS)] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } - public final [STATUS] fun receive([STATUS] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun receive([ResolvedTo(STATUS)] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } - public final [STATUS] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } } CONTRACTS: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public final [STATUS] class A : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public final [STATUS] val x: R|kotlin/Int| = LAZY_EXPRESSION - public [STATUS] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] val x: R|kotlin/Int| = LAZY_EXPRESSION + public [ResolvedTo(STATUS)] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } - public final [STATUS] fun receive([STATUS] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun receive([ResolvedTo(STATUS)] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } - public final [STATUS] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public final [STATUS] class A : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public final [STATUS] val x: R|kotlin/Int| = LAZY_EXPRESSION - public [STATUS] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] val x: R|kotlin/Int| = LAZY_EXPRESSION + public [ResolvedTo(STATUS)] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } - public final [STATUS] fun receive([STATUS] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun receive([ResolvedTo(STATUS)] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } - public final [STATUS] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public final [STATUS] class A : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public final [STATUS] val x: R|kotlin/Int| = LAZY_EXPRESSION - public [STATUS] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] val x: R|kotlin/Int| = LAZY_EXPRESSION + public [ResolvedTo(STATUS)] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } - public final [STATUS] fun receive([STATUS] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun receive([ResolvedTo(STATUS)] value: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK } - public final [STATUS] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun functionWithLazyBody(): R|kotlin/String| { LAZY_BLOCK } } BODY_RESOLVE: -FILE: [IMPORTS] classMembers.kt - [RAW_FIR] annotations container - public final [STATUS] class A : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { this@R|/A|.R|/A.receive|(this@R|/A|.R|/A.functionWithLazyBody|()) } - public final [STATUS] val x: R|kotlin/Int| = LAZY_EXPRESSION - public [STATUS] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] val x: R|kotlin/Int| = LAZY_EXPRESSION + public [ResolvedTo(STATUS)] [ContainingClassKey=A] get(): R|kotlin/Int| { LAZY_BLOCK } - public final [CONTRACTS] fun receive([CONTRACTS] value: R|kotlin/String|): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun receive([ResolvedTo(CONTRACTS)] value: R|kotlin/String|): R|kotlin/Unit| { } - public final [CONTRACTS] fun functionWithLazyBody(): R|kotlin/String| { + public final [ResolvedTo(CONTRACTS)] fun functionWithLazyBody(): R|kotlin/String| { ^functionWithLazyBody String(42) } } FILE RAW TO BODY: -FILE: [IMPORTS] classMembers.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] class A : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] classMembers.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] constructor(): R|A| { super() } - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { this@R|/A|.R|/A.receive|(this@R|/A|.R|/A.functionWithLazyBody|()) } - public final [BODY_RESOLVE] [IsReferredViaField=true] val x: R|kotlin/Int| = Int(10) - public [BODY_RESOLVE] [ContainingClassKey=A] get(): R|kotlin/Int| { + public final [ResolvedTo(BODY_RESOLVE)] [IsReferredViaField=true] val x: R|kotlin/Int| = Int(10) + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] get(): R|kotlin/Int| { ^ this@R|/A|.F|/A.x| } - public final [BODY_RESOLVE] fun receive([BODY_RESOLVE] value: R|kotlin/String|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun receive([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] fun functionWithLazyBody(): R|kotlin/String| { + public final [ResolvedTo(BODY_RESOLVE)] fun functionWithLazyBody(): R|kotlin/String| { ^functionWithLazyBody String(42) } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/classes/classWithTypeParameters.txt b/analysis/low-level-api-fir/testdata/lazyResolve/classes/classWithTypeParameters.txt index a18085e4323..467f34fb944 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/classes/classWithTypeParameters.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/classes/classWithTypeParameters.txt @@ -1,139 +1,139 @@ RAW_FIR: -FILE: [RAW_FIR] classWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class ResolveMe<[RAW_FIR] T : Int, [RAW_FIR] K> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=ResolveMe] constructor<[RAW_FIR] T : Int, [RAW_FIR] K>(): R|ResolveMe| { +FILE: [ResolvedTo(RAW_FIR)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class ResolveMe<[ResolvedTo(RAW_FIR)] T : Int, [ResolvedTo(RAW_FIR)] K> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(RAW_FIR)] T : Int, [ResolvedTo(RAW_FIR)] K>(): R|ResolveMe| { LAZY_super } } IMPORTS: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class ResolveMe<[RAW_FIR] T : Int, [RAW_FIR] K> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=ResolveMe] constructor<[RAW_FIR] T : Int, [RAW_FIR] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class ResolveMe<[ResolvedTo(RAW_FIR)] T : Int, [ResolvedTo(RAW_FIR)] K> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(RAW_FIR)] T : Int, [ResolvedTo(RAW_FIR)] K>(): R|ResolveMe| { LAZY_super } } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] class ResolveMe<[COMPILER_REQUIRED_ANNOTATIONS] T : Int, [COMPILER_REQUIRED_ANNOTATIONS] K> : R|kotlin/Any| { - public? [COMPILER_REQUIRED_ANNOTATIONS] [ContainingClassKey=ResolveMe] constructor<[COMPILER_REQUIRED_ANNOTATIONS] T : Int, [COMPILER_REQUIRED_ANNOTATIONS] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] class ResolveMe<[ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] T : Int, [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] K> : R|kotlin/Any| { + public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] T : Int, [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] K>(): R|ResolveMe| { LAZY_super } } COMPANION_GENERATION: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] class ResolveMe<[COMPANION_GENERATION] T : Int, [COMPANION_GENERATION] K> : R|kotlin/Any| { - public? [COMPANION_GENERATION] [ContainingClassKey=ResolveMe] constructor<[COMPANION_GENERATION] T : Int, [COMPANION_GENERATION] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] class ResolveMe<[ResolvedTo(COMPANION_GENERATION)] T : Int, [ResolvedTo(COMPANION_GENERATION)] K> : R|kotlin/Any| { + public? [ResolvedTo(COMPANION_GENERATION)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(COMPANION_GENERATION)] T : Int, [ResolvedTo(COMPANION_GENERATION)] K>(): R|ResolveMe| { LAZY_super } } SUPER_TYPES: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] class ResolveMe<[SUPER_TYPES] T : Int, [SUPER_TYPES] K> : R|kotlin/Any| { - public? [SUPER_TYPES] [ContainingClassKey=ResolveMe] constructor<[SUPER_TYPES] T : Int, [SUPER_TYPES] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] class ResolveMe<[ResolvedTo(SUPER_TYPES)] T : Int, [ResolvedTo(SUPER_TYPES)] K> : R|kotlin/Any| { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(SUPER_TYPES)] T : Int, [ResolvedTo(SUPER_TYPES)] K>(): R|ResolveMe| { LAZY_super } } TYPES: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [TYPES] class ResolveMe<[TYPES] T : R|kotlin/Int|, [TYPES] K> : R|kotlin/Any| { - public? [TYPES] [ContainingClassKey=ResolveMe] constructor<[TYPES] T : R|kotlin/Int|, [TYPES] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] class ResolveMe<[ResolvedTo(TYPES)] T : R|kotlin/Int|, [ResolvedTo(TYPES)] K> : R|kotlin/Any| { + public? [ResolvedTo(TYPES)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(TYPES)] T : R|kotlin/Int|, [ResolvedTo(TYPES)] K>(): R|ResolveMe| { LAZY_super } } STATUS: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public final [STATUS] class ResolveMe<[STATUS] T : R|kotlin/Int|, [STATUS] K> : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=ResolveMe] constructor<[STATUS] T : R|kotlin/Int|, [STATUS] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class ResolveMe<[ResolvedTo(STATUS)] T : R|kotlin/Int|, [ResolvedTo(STATUS)] K> : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(STATUS)] T : R|kotlin/Int|, [ResolvedTo(STATUS)] K>(): R|ResolveMe| { LAZY_super } } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] class ResolveMe<[EXPECT_ACTUAL_MATCHING] T : R|kotlin/Int|, [EXPECT_ACTUAL_MATCHING] K> : R|kotlin/Any| { - public [EXPECT_ACTUAL_MATCHING] [ContainingClassKey=ResolveMe] constructor<[EXPECT_ACTUAL_MATCHING] T : R|kotlin/Int|, [EXPECT_ACTUAL_MATCHING] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] class ResolveMe<[ResolvedTo(EXPECT_ACTUAL_MATCHING)] T : R|kotlin/Int|, [ResolvedTo(EXPECT_ACTUAL_MATCHING)] K> : R|kotlin/Any| { + public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(EXPECT_ACTUAL_MATCHING)] T : R|kotlin/Int|, [ResolvedTo(EXPECT_ACTUAL_MATCHING)] K>(): R|ResolveMe| { super() } } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] class ResolveMe<[ARGUMENTS_OF_ANNOTATIONS] T : R|kotlin/Int|, [ARGUMENTS_OF_ANNOTATIONS] K> : R|kotlin/Any| { - public [ARGUMENTS_OF_ANNOTATIONS] [ContainingClassKey=ResolveMe] constructor<[ARGUMENTS_OF_ANNOTATIONS] T : R|kotlin/Int|, [ARGUMENTS_OF_ANNOTATIONS] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] class ResolveMe<[ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] T : R|kotlin/Int|, [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] K> : R|kotlin/Any| { + public [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] T : R|kotlin/Int|, [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] K>(): R|ResolveMe| { super() } } CONTRACTS: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public final [CONTRACTS] class ResolveMe<[CONTRACTS] T : R|kotlin/Int|, [CONTRACTS] K> : R|kotlin/Any| { - public [CONTRACTS] [ContainingClassKey=ResolveMe] constructor<[CONTRACTS] T : R|kotlin/Int|, [CONTRACTS] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] class ResolveMe<[ResolvedTo(CONTRACTS)] T : R|kotlin/Int|, [ResolvedTo(CONTRACTS)] K> : R|kotlin/Any| { + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(CONTRACTS)] T : R|kotlin/Int|, [ResolvedTo(CONTRACTS)] K>(): R|ResolveMe| { super() } } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] class ResolveMe<[IMPLICIT_TYPES_BODY_RESOLVE] T : R|kotlin/Int|, [IMPLICIT_TYPES_BODY_RESOLVE] K> : R|kotlin/Any| { - public [IMPLICIT_TYPES_BODY_RESOLVE] [ContainingClassKey=ResolveMe] constructor<[IMPLICIT_TYPES_BODY_RESOLVE] T : R|kotlin/Int|, [IMPLICIT_TYPES_BODY_RESOLVE] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] class ResolveMe<[ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] K> : R|kotlin/Any| { + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] K>(): R|ResolveMe| { super() } } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] class ResolveMe<[ANNOTATIONS_ARGUMENTS_MAPPING] T : R|kotlin/Int|, [ANNOTATIONS_ARGUMENTS_MAPPING] K> : R|kotlin/Any| { - public [ANNOTATIONS_ARGUMENTS_MAPPING] [ContainingClassKey=ResolveMe] constructor<[ANNOTATIONS_ARGUMENTS_MAPPING] T : R|kotlin/Int|, [ANNOTATIONS_ARGUMENTS_MAPPING] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] class ResolveMe<[ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] T : R|kotlin/Int|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] K> : R|kotlin/Any| { + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] T : R|kotlin/Int|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] K>(): R|ResolveMe| { super() } } BODY_RESOLVE: -FILE: [IMPORTS] classWithTypeParameters.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] class ResolveMe<[BODY_RESOLVE] T : R|kotlin/Int|, [BODY_RESOLVE] K> : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=ResolveMe] constructor<[BODY_RESOLVE] T : R|kotlin/Int|, [BODY_RESOLVE] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] class ResolveMe<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] K> : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] K>(): R|ResolveMe| { super() } } FILE RAW TO BODY: -FILE: [IMPORTS] classWithTypeParameters.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] class ResolveMe<[BODY_RESOLVE] T : R|kotlin/Int|, [BODY_RESOLVE] K> : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=ResolveMe] constructor<[BODY_RESOLVE] T : R|kotlin/Int|, [BODY_RESOLVE] K>(): R|ResolveMe| { +FILE: [ResolvedTo(IMPORTS)] classWithTypeParameters.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] class ResolveMe<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] K> : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=ResolveMe] constructor<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] K>(): R|ResolveMe| { super() } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/classes/functionInValueClass.txt b/analysis/low-level-api-fir/testdata/lazyResolve/classes/functionInValueClass.txt index 34140fa96ea..21d66809cb2 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/classes/functionInValueClass.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/classes/functionInValueClass.txt @@ -1,217 +1,217 @@ RAW_FIR: -FILE: [RAW_FIR] functionInValueClass.kt - [RAW_FIR] annotations container - @JvmInline() public? final? inline [RAW_FIR] class Value : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Value] constructor([RAW_FIR] [CorrespondingProperty=/Value.value] value: Int): R|Value| { +FILE: [ResolvedTo(RAW_FIR)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @JvmInline() public? final? inline [ResolvedTo(RAW_FIR)] class Value : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Value] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Value.value] value: Int): R|Value| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: Int = R|/value| - public? [RAW_FIR] [ContainingClassKey=Value] get(): Int + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: Int = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Value] get(): Int - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } } IMPORTS: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @JvmInline() public? final? inline [RAW_FIR] class Value : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Value] constructor([RAW_FIR] [CorrespondingProperty=/Value.value] value: Int): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @JvmInline() public? final? inline [ResolvedTo(RAW_FIR)] class Value : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Value] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Value.value] value: Int): R|Value| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: Int = R|/value| - public? [RAW_FIR] [ContainingClassKey=Value] get(): Int + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: Int = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Value] get(): Int - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @JvmInline() public? final? inline [RAW_FIR] class Value : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Value] constructor([RAW_FIR] [CorrespondingProperty=/Value.value] value: Int): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @JvmInline() public? final? inline [ResolvedTo(RAW_FIR)] class Value : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Value] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Value.value] value: Int): R|Value| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: Int = R|/value| - public? [RAW_FIR] [ContainingClassKey=Value] get(): Int + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: Int = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Value] get(): Int - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } } COMPANION_GENERATION: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @JvmInline() public? final? inline [RAW_FIR] class Value : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Value] constructor([RAW_FIR] [CorrespondingProperty=/Value.value] value: Int): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @JvmInline() public? final? inline [ResolvedTo(RAW_FIR)] class Value : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Value] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Value.value] value: Int): R|Value| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: Int = R|/value| - public? [RAW_FIR] [ContainingClassKey=Value] get(): Int + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: Int = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Value] get(): Int - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } } SUPER_TYPES: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @JvmInline() public? final? inline [RAW_FIR] class Value : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Value] constructor([RAW_FIR] [CorrespondingProperty=/Value.value] value: Int): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @JvmInline() public? final? inline [ResolvedTo(RAW_FIR)] class Value : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Value] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=/Value.value] value: Int): R|Value| { LAZY_super } - public? final? [RAW_FIR] [IsFromPrimaryConstructor=true] val value: Int = R|/value| - public? [RAW_FIR] [ContainingClassKey=Value] get(): Int + public? final? [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val value: Int = R|/value| + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Value] get(): Int - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } } TYPES: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @R|kotlin/jvm/JvmInline|() public? final? inline [SUPER_TYPES] class Value : R|kotlin/Any| { - public? [SUPER_TYPES] [ContainingClassKey=Value] constructor([SUPER_TYPES] [CorrespondingProperty=/Value.value] value: Int): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/jvm/JvmInline|() public? final? inline [ResolvedTo(SUPER_TYPES)] class Value : R|kotlin/Any| { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=Value] constructor([ResolvedTo(SUPER_TYPES)] [CorrespondingProperty=/Value.value] value: Int): R|Value| { LAZY_super } - public? final? [SUPER_TYPES] [IsFromPrimaryConstructor=true] val value: Int = R|/value| - public? [SUPER_TYPES] [ContainingClassKey=Value] get(): Int + public? final? [ResolvedTo(SUPER_TYPES)] [IsFromPrimaryConstructor=true] val value: Int = R|/value| + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=Value] get(): Int - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } } STATUS: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @R|kotlin/jvm/JvmInline|() public final inline [SUPER_TYPES] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=Value] constructor([TYPES] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/jvm/JvmInline|() public final inline [ResolvedTo(SUPER_TYPES)] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=Value] constructor([ResolvedTo(TYPES)] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { LAZY_super } - public final [TYPES] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| - public [TYPES] [ContainingClassKey=Value] get(): R|kotlin/Int| + public final [ResolvedTo(TYPES)] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| + public [ResolvedTo(TYPES)] [ContainingClassKey=Value] get(): R|kotlin/Int| - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @R|kotlin/jvm/JvmInline|() public final inline [SUPER_TYPES] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=Value] constructor([TYPES] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/jvm/JvmInline|() public final inline [ResolvedTo(SUPER_TYPES)] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=Value] constructor([ResolvedTo(TYPES)] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { LAZY_super } - public final [TYPES] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| - public [TYPES] [ContainingClassKey=Value] get(): R|kotlin/Int| + public final [ResolvedTo(TYPES)] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| + public [ResolvedTo(TYPES)] [ContainingClassKey=Value] get(): R|kotlin/Int| - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { } } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @R|kotlin/jvm/JvmInline|() public final inline [STATUS] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=Value] constructor([STATUS] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/jvm/JvmInline|() public final inline [ResolvedTo(STATUS)] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Value] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { LAZY_super } - public final [STATUS] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| - public [STATUS] [ContainingClassKey=Value] get(): R|kotlin/Int| + public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| + public [ResolvedTo(STATUS)] [ContainingClassKey=Value] get(): R|kotlin/Int| - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { } } CONTRACTS: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @R|kotlin/jvm/JvmInline|() public final inline [STATUS] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=Value] constructor([STATUS] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/jvm/JvmInline|() public final inline [ResolvedTo(STATUS)] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Value] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { LAZY_super } - public final [STATUS] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| - public [STATUS] [ContainingClassKey=Value] get(): R|kotlin/Int| + public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| + public [ResolvedTo(STATUS)] [ContainingClassKey=Value] get(): R|kotlin/Int| - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { } } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @R|kotlin/jvm/JvmInline|() public final inline [STATUS] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=Value] constructor([STATUS] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/jvm/JvmInline|() public final inline [ResolvedTo(STATUS)] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Value] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { LAZY_super } - public final [STATUS] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| - public [STATUS] [ContainingClassKey=Value] get(): R|kotlin/Int| + public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| + public [ResolvedTo(STATUS)] [ContainingClassKey=Value] get(): R|kotlin/Int| - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @R|kotlin/jvm/JvmInline|() public final inline [STATUS] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=Value] constructor([STATUS] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/jvm/JvmInline|() public final inline [ResolvedTo(STATUS)] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Value] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { LAZY_super } - public final [STATUS] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| - public [STATUS] [ContainingClassKey=Value] get(): R|kotlin/Int| + public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| + public [ResolvedTo(STATUS)] [ContainingClassKey=Value] get(): R|kotlin/Int| - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { } } BODY_RESOLVE: -FILE: [IMPORTS] functionInValueClass.kt - [RAW_FIR] annotations container - @R|kotlin/jvm/JvmInline|() public final inline [STATUS] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=Value] constructor([STATUS] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(RAW_FIR)] annotations container + @R|kotlin/jvm/JvmInline|() public final inline [ResolvedTo(STATUS)] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Value] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { LAZY_super } - public final [STATUS] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| - public [STATUS] [ContainingClassKey=Value] get(): R|kotlin/Int| + public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| + public [ResolvedTo(STATUS)] [ContainingClassKey=Value] get(): R|kotlin/Int| - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } } FILE RAW TO BODY: -FILE: [IMPORTS] functionInValueClass.kt - [BODY_RESOLVE] annotations container - @R|kotlin/jvm/JvmInline|() public final inline [BODY_RESOLVE] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=Value] constructor([BODY_RESOLVE] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { +FILE: [ResolvedTo(IMPORTS)] functionInValueClass.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + @R|kotlin/jvm/JvmInline|() public final inline [ResolvedTo(BODY_RESOLVE)] [FirValueClassRepresentationKey=InlineClassRepresentation(underlyingPropertyName=value, underlyingType=kotlin/Int)] class Value : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Value] constructor([ResolvedTo(BODY_RESOLVE)] [CorrespondingProperty=/Value.value] value: R|kotlin/Int|): R|Value| { super() } - public final [BODY_RESOLVE] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| - public [BODY_RESOLVE] [ContainingClassKey=Value] get(): R|kotlin/Int| + public final [ResolvedTo(BODY_RESOLVE)] [IsFromPrimaryConstructor=true] val value: R|kotlin/Int| = R|/value| + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Value] get(): R|kotlin/Int| - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { } } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/classes/nestedClassWithPropertiesOverrides.txt b/analysis/low-level-api-fir/testdata/lazyResolve/classes/nestedClassWithPropertiesOverrides.txt index 86c2d2f6937..d2ce57b3ee1 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/classes/nestedClassWithPropertiesOverrides.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/classes/nestedClassWithPropertiesOverrides.txt @@ -1,349 +1,349 @@ RAW_FIR: -FILE: [RAW_FIR] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface OV : R|kotlin/Any| { - public? final? [RAW_FIR] val originalExpressions: A - public? [RAW_FIR] [ContainingClassKey=OV] get(): A +FILE: [ResolvedTo(RAW_FIR)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface OV : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] val originalExpressions: A + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=OV] get(): A - public? final? [RAW_FIR] class ResolveMe : OV { - public? [RAW_FIR] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public? final? [ResolvedTo(RAW_FIR)] class ResolveMe : OV { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { LAZY_super<> } - public? open? override [RAW_FIR] val originalExpressions: A - public? [RAW_FIR] [ContainingClassKey=ResolveMe] get(): A + public? open? override [ResolvedTo(RAW_FIR)] val originalExpressions: A + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=ResolveMe] get(): A } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } IMPORTS: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface OV : R|kotlin/Any| { - public? final? [RAW_FIR] val originalExpressions: A - public? [RAW_FIR] [ContainingClassKey=OV] get(): A +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface OV : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] val originalExpressions: A + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=OV] get(): A - public? final? [RAW_FIR] class ResolveMe : OV { - public? [RAW_FIR] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public? final? [ResolvedTo(RAW_FIR)] class ResolveMe : OV { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { LAZY_super<> } - public? open? override [RAW_FIR] val originalExpressions: A - public? [RAW_FIR] [ContainingClassKey=ResolveMe] get(): A + public? open? override [ResolvedTo(RAW_FIR)] val originalExpressions: A + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=ResolveMe] get(): A } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface OV : R|kotlin/Any| { - public? final? [RAW_FIR] val originalExpressions: A - public? [RAW_FIR] [ContainingClassKey=OV] get(): A +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface OV : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] val originalExpressions: A + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=OV] get(): A - public? final? [COMPILER_REQUIRED_ANNOTATIONS] class ResolveMe : OV { - public? [COMPILER_REQUIRED_ANNOTATIONS] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] class ResolveMe : OV { + public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { LAZY_super<> } - public? open? override [COMPILER_REQUIRED_ANNOTATIONS] val originalExpressions: A - public? [COMPILER_REQUIRED_ANNOTATIONS] [ContainingClassKey=ResolveMe] get(): A + public? open? override [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] val originalExpressions: A + public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] [ContainingClassKey=ResolveMe] get(): A } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } COMPANION_GENERATION: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface OV : R|kotlin/Any| { - public? final? [RAW_FIR] val originalExpressions: A - public? [RAW_FIR] [ContainingClassKey=OV] get(): A +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface OV : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] val originalExpressions: A + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=OV] get(): A - public? final? [COMPANION_GENERATION] class ResolveMe : OV { - public? [COMPANION_GENERATION] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public? final? [ResolvedTo(COMPANION_GENERATION)] class ResolveMe : OV { + public? [ResolvedTo(COMPANION_GENERATION)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { LAZY_super<> } - public? open? override [COMPANION_GENERATION] val originalExpressions: A - public? [COMPANION_GENERATION] [ContainingClassKey=ResolveMe] get(): A + public? open? override [ResolvedTo(COMPANION_GENERATION)] val originalExpressions: A + public? [ResolvedTo(COMPANION_GENERATION)] [ContainingClassKey=ResolveMe] get(): A } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } SUPER_TYPES: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface OV : R|kotlin/Any| { - public? final? [RAW_FIR] val originalExpressions: A - public? [RAW_FIR] [ContainingClassKey=OV] get(): A +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface OV : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] val originalExpressions: A + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=OV] get(): A - public? final? [SUPER_TYPES] class ResolveMe : R|OV| { - public? [SUPER_TYPES] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public? final? [ResolvedTo(SUPER_TYPES)] class ResolveMe : R|OV| { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { LAZY_super<> } - public? open? override [SUPER_TYPES] val originalExpressions: A - public? [SUPER_TYPES] [ContainingClassKey=ResolveMe] get(): A + public? open? override [ResolvedTo(SUPER_TYPES)] val originalExpressions: A + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=ResolveMe] get(): A } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } TYPES: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] interface OV : R|kotlin/Any| { - public? final? [SUPER_TYPES] val originalExpressions: A - public? [SUPER_TYPES] [ContainingClassKey=OV] get(): A +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] interface OV : R|kotlin/Any| { + public? final? [ResolvedTo(SUPER_TYPES)] val originalExpressions: A + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=OV] get(): A - public? final? [TYPES] class ResolveMe : R|OV| { - public? [TYPES] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public? final? [ResolvedTo(TYPES)] class ResolveMe : R|OV| { + public? [ResolvedTo(TYPES)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { LAZY_super<> } - public? open? override [TYPES] val originalExpressions: R|A| - public? [TYPES] [ContainingClassKey=ResolveMe] get(): R|A| + public? open? override [ResolvedTo(TYPES)] val originalExpressions: R|A| + public? [ResolvedTo(TYPES)] [ContainingClassKey=ResolveMe] get(): R|A| } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } STATUS: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public abstract [SUPER_TYPES] interface OV : R|kotlin/Any| { - public abstract [TYPES] val originalExpressions: R|A| - public [TYPES] [ContainingClassKey=OV] get(): R|A| +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public abstract [ResolvedTo(SUPER_TYPES)] interface OV : R|kotlin/Any| { + public abstract [ResolvedTo(TYPES)] val originalExpressions: R|A| + public [ResolvedTo(TYPES)] [ContainingClassKey=OV] get(): R|A| - public final [STATUS] class ResolveMe : R|OV| { - public [STATUS] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public final [ResolvedTo(STATUS)] class ResolveMe : R|OV| { + public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { LAZY_super<> } - public open override [STATUS] val originalExpressions: R|A| - public [STATUS] [ContainingClassKey=ResolveMe] get(): R|A| + public open override [ResolvedTo(STATUS)] val originalExpressions: R|A| + public [ResolvedTo(STATUS)] [ContainingClassKey=ResolveMe] get(): R|A| } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public abstract [SUPER_TYPES] interface OV : R|kotlin/Any| { - public abstract [TYPES] val originalExpressions: R|A| - public [TYPES] [ContainingClassKey=OV] get(): R|A| +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public abstract [ResolvedTo(SUPER_TYPES)] interface OV : R|kotlin/Any| { + public abstract [ResolvedTo(TYPES)] val originalExpressions: R|A| + public [ResolvedTo(TYPES)] [ContainingClassKey=OV] get(): R|A| - public final [EXPECT_ACTUAL_MATCHING] class ResolveMe : R|OV| { - public [EXPECT_ACTUAL_MATCHING] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] class ResolveMe : R|OV| { + public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { super<>() } - public open override [EXPECT_ACTUAL_MATCHING] val originalExpressions: R|A| - public [EXPECT_ACTUAL_MATCHING] [ContainingClassKey=ResolveMe] get(): R|A| + public open override [ResolvedTo(EXPECT_ACTUAL_MATCHING)] val originalExpressions: R|A| + public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] [ContainingClassKey=ResolveMe] get(): R|A| } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public abstract [STATUS] interface OV : R|kotlin/Any| { - public abstract [STATUS] val originalExpressions: R|A| - public [STATUS] [ContainingClassKey=OV] get(): R|A| +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public abstract [ResolvedTo(STATUS)] interface OV : R|kotlin/Any| { + public abstract [ResolvedTo(STATUS)] val originalExpressions: R|A| + public [ResolvedTo(STATUS)] [ContainingClassKey=OV] get(): R|A| - public final [ARGUMENTS_OF_ANNOTATIONS] class ResolveMe : R|OV| { - public [ARGUMENTS_OF_ANNOTATIONS] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] class ResolveMe : R|OV| { + public [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { super<>() } - public open override [ARGUMENTS_OF_ANNOTATIONS] val originalExpressions: R|A| - public [ARGUMENTS_OF_ANNOTATIONS] [ContainingClassKey=ResolveMe] get(): R|A| + public open override [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] val originalExpressions: R|A| + public [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] [ContainingClassKey=ResolveMe] get(): R|A| } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } CONTRACTS: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public abstract [STATUS] interface OV : R|kotlin/Any| { - public abstract [STATUS] val originalExpressions: R|A| - public [STATUS] [ContainingClassKey=OV] get(): R|A| +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public abstract [ResolvedTo(STATUS)] interface OV : R|kotlin/Any| { + public abstract [ResolvedTo(STATUS)] val originalExpressions: R|A| + public [ResolvedTo(STATUS)] [ContainingClassKey=OV] get(): R|A| - public final [CONTRACTS] class ResolveMe : R|OV| { - public [CONTRACTS] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public final [ResolvedTo(CONTRACTS)] class ResolveMe : R|OV| { + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { super<>() } - public open override [CONTRACTS] val originalExpressions: R|A| - public [CONTRACTS] [ContainingClassKey=ResolveMe] get(): R|A| + public open override [ResolvedTo(CONTRACTS)] val originalExpressions: R|A| + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=ResolveMe] get(): R|A| } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public abstract [STATUS] interface OV : R|kotlin/Any| { - public abstract [STATUS] val originalExpressions: R|A| - public [STATUS] [ContainingClassKey=OV] get(): R|A| +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public abstract [ResolvedTo(STATUS)] interface OV : R|kotlin/Any| { + public abstract [ResolvedTo(STATUS)] val originalExpressions: R|A| + public [ResolvedTo(STATUS)] [ContainingClassKey=OV] get(): R|A| - public final [IMPLICIT_TYPES_BODY_RESOLVE] class ResolveMe : R|OV| { - public [IMPLICIT_TYPES_BODY_RESOLVE] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] class ResolveMe : R|OV| { + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { super<>() } - public open override [IMPLICIT_TYPES_BODY_RESOLVE] val originalExpressions: R|A| - public [IMPLICIT_TYPES_BODY_RESOLVE] [ContainingClassKey=ResolveMe] get(): R|A| + public open override [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] val originalExpressions: R|A| + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=ResolveMe] get(): R|A| } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public abstract [STATUS] interface OV : R|kotlin/Any| { - public abstract [STATUS] val originalExpressions: R|A| - public [STATUS] [ContainingClassKey=OV] get(): R|A| +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public abstract [ResolvedTo(STATUS)] interface OV : R|kotlin/Any| { + public abstract [ResolvedTo(STATUS)] val originalExpressions: R|A| + public [ResolvedTo(STATUS)] [ContainingClassKey=OV] get(): R|A| - public final [ANNOTATIONS_ARGUMENTS_MAPPING] class ResolveMe : R|OV| { - public [ANNOTATIONS_ARGUMENTS_MAPPING] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] class ResolveMe : R|OV| { + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { super<>() } - public open override [ANNOTATIONS_ARGUMENTS_MAPPING] val originalExpressions: R|A| - public [ANNOTATIONS_ARGUMENTS_MAPPING] [ContainingClassKey=ResolveMe] get(): R|A| + public open override [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] val originalExpressions: R|A| + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=ResolveMe] get(): R|A| } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } BODY_RESOLVE: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [RAW_FIR] annotations container - public abstract [STATUS] interface OV : R|kotlin/Any| { - public abstract [STATUS] val originalExpressions: R|A| - public [STATUS] [ContainingClassKey=OV] get(): R|A| +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(RAW_FIR)] annotations container + public abstract [ResolvedTo(STATUS)] interface OV : R|kotlin/Any| { + public abstract [ResolvedTo(STATUS)] val originalExpressions: R|A| + public [ResolvedTo(STATUS)] [ContainingClassKey=OV] get(): R|A| - public final [BODY_RESOLVE] class ResolveMe : R|OV| { - public [BODY_RESOLVE] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public final [ResolvedTo(BODY_RESOLVE)] class ResolveMe : R|OV| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { super() } - public open override [BODY_RESOLVE] val originalExpressions: R|A| - public [BODY_RESOLVE] [ContainingClassKey=ResolveMe] get(): R|A| + public open override [ResolvedTo(BODY_RESOLVE)] val originalExpressions: R|A| + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=ResolveMe] get(): R|A| } } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } FILE RAW TO BODY: -FILE: [IMPORTS] nestedClassWithPropertiesOverrides.kt - [BODY_RESOLVE] annotations container - public abstract [BODY_RESOLVE] interface OV : R|kotlin/Any| { - public abstract [BODY_RESOLVE] val originalExpressions: R|A| - public [BODY_RESOLVE] [ContainingClassKey=OV] get(): R|A| +FILE: [ResolvedTo(IMPORTS)] nestedClassWithPropertiesOverrides.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public abstract [ResolvedTo(BODY_RESOLVE)] interface OV : R|kotlin/Any| { + public abstract [ResolvedTo(BODY_RESOLVE)] val originalExpressions: R|A| + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=OV] get(): R|A| - public final [BODY_RESOLVE] class ResolveMe : R|OV| { - public [BODY_RESOLVE] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { + public final [ResolvedTo(BODY_RESOLVE)] class ResolveMe : R|OV| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=ResolveMe] constructor(): R|OV.ResolveMe| { super() } - public open override [BODY_RESOLVE] val originalExpressions: R|A| - public [BODY_RESOLVE] [ContainingClassKey=ResolveMe] get(): R|A| + public open override [ResolvedTo(BODY_RESOLVE)] val originalExpressions: R|A| + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=ResolveMe] get(): R|A| } } - public final [BODY_RESOLVE] class A : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=A] constructor(): R|A| { + public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] constructor(): R|A| { super() } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/delegates.txt b/analysis/low-level-api-fir/testdata/lazyResolve/delegates.txt index af3d9079833..31d972ec164 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/delegates.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/delegates.txt @@ -1,483 +1,483 @@ RAW_FIR: -FILE: [RAW_FIR] delegates.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { +FILE: [ResolvedTo(RAW_FIR)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } IMPORTS: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } COMPANION_GENERATION: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } SUPER_TYPES: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } TYPES: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } STATUS: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { receive#(valueWithExplicitType#) receive#(valueWithImplicitType#) variableWithExplicitType# = IntegerLiteral(10) variableWithImplicitType# = IntegerLiteral(10) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { receive#(valueWithExplicitType#) receive#(valueWithImplicitType#) variableWithExplicitType# = IntegerLiteral(10) variableWithImplicitType# = IntegerLiteral(10) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } CONTRACTS: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { receive#(valueWithExplicitType#) receive#(valueWithImplicitType#) variableWithExplicitType# = IntegerLiteral(10) variableWithImplicitType# = IntegerLiteral(10) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { receive#(valueWithExplicitType#) receive#(valueWithImplicitType#) variableWithExplicitType# = IntegerLiteral(10) variableWithImplicitType# = IntegerLiteral(10) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { receive#(valueWithExplicitType#) receive#(valueWithImplicitType#) variableWithExplicitType# = IntegerLiteral(10) variableWithImplicitType# = IntegerLiteral(10) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val delegate: = LAZY_EXPRESSION - public? [RAW_FIR] get(): - public? final? [RAW_FIR] val valueWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val delegate: = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): + public? final? [ResolvedTo(RAW_FIR)] val valueWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public? final? [RAW_FIR] val valueWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] val valueWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/valueWithImplicitType|.getValue#(Null(null), ::R|/valueWithImplicitType|) } - public? final? [RAW_FIR] var variableWithExplicitType: Intby LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithExplicitType: Intby LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public? final? [RAW_FIR] var variableWithImplicitType: by LAZY_EXPRESSION - public? [RAW_FIR] get(): { + public? final? [ResolvedTo(RAW_FIR)] var variableWithImplicitType: by LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): { ^ D|/variableWithImplicitType|.getValue#(Null(null), ::R|/variableWithImplicitType|) } - public? [RAW_FIR] set([RAW_FIR] : ): R|kotlin/Unit| { + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] : ): R|kotlin/Unit| { D|/variableWithImplicitType|.setValue#(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } BODY_RESOLVE: -FILE: [IMPORTS] delegates.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/valueWithExplicitType|) R|/receive|(R|/valueWithImplicitType|) R|/variableWithExplicitType| = Int(10) R|/variableWithImplicitType| = Int(10) } - public final [CONTRACTS] fun receive([CONTRACTS] value: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun receive([ResolvedTo(CONTRACTS)] value: R|kotlin/Int|): R|kotlin/Unit| { } - public final [CONTRACTS] val delegate: R|kotlin/properties/ReadWriteProperty| = object : R|kotlin/properties/ReadWriteProperty| { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { + public final [ResolvedTo(CONTRACTS)] val delegate: R|kotlin/properties/ReadWriteProperty| = object : R|kotlin/properties/ReadWriteProperty| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super() } - public open override operator [RAW_FIR] fun getValue([RAW_FIR] thisRef: R|kotlin/Any?|, [RAW_FIR] property: R|kotlin/reflect/KProperty<*>|): R|kotlin/Int| { + public open override operator [ResolvedTo(RAW_FIR)] fun getValue([ResolvedTo(RAW_FIR)] thisRef: R|kotlin/Any?|, [ResolvedTo(RAW_FIR)] property: R|kotlin/reflect/KProperty<*>|): R|kotlin/Int| { ^getValue Int(1) } - public open override operator [RAW_FIR] fun setValue([RAW_FIR] thisRef: R|kotlin/Any?|, [RAW_FIR] property: R|kotlin/reflect/KProperty<*>|, [RAW_FIR] value: R|kotlin/Int|): R|kotlin/Unit| { + public open override operator [ResolvedTo(RAW_FIR)] fun setValue([ResolvedTo(RAW_FIR)] thisRef: R|kotlin/Any?|, [ResolvedTo(RAW_FIR)] property: R|kotlin/reflect/KProperty<*>|, [ResolvedTo(RAW_FIR)] value: R|kotlin/Int|): R|kotlin/Unit| { } } - public [CONTRACTS] get(): R|kotlin/properties/ReadWriteProperty| - public final [CONTRACTS] val valueWithExplicitType: R|kotlin/Int|by delegate# - public [CONTRACTS] get(): R|kotlin/Int| { + public [ResolvedTo(CONTRACTS)] get(): R|kotlin/properties/ReadWriteProperty| + public final [ResolvedTo(CONTRACTS)] val valueWithExplicitType: R|kotlin/Int|by delegate# + public [ResolvedTo(CONTRACTS)] get(): R|kotlin/Int| { ^ D|/valueWithExplicitType|.getValue#(Null(null), ::R|/valueWithExplicitType|) } - public final [IMPLICIT_TYPES_BODY_RESOLVE] val valueWithImplicitType: R|kotlin/Int|by R|/delegate| - public [IMPLICIT_TYPES_BODY_RESOLVE] get(): R|kotlin/Int| { + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] val valueWithImplicitType: R|kotlin/Int|by R|/delegate| + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] get(): R|kotlin/Int| { ^ D|/valueWithImplicitType|.R|SubstitutionOverride|(Null(null), ::R|/valueWithImplicitType|) } - public final [CONTRACTS] var variableWithExplicitType: R|kotlin/Int|by delegate# - public [CONTRACTS] get(): R|kotlin/Int| { + public final [ResolvedTo(CONTRACTS)] var variableWithExplicitType: R|kotlin/Int|by delegate# + public [ResolvedTo(CONTRACTS)] get(): R|kotlin/Int| { ^ D|/variableWithExplicitType|.getValue#(Null(null), ::R|/variableWithExplicitType|) } - public [CONTRACTS] set([CONTRACTS] : R|kotlin/Int|): R|kotlin/Unit| { + public [ResolvedTo(CONTRACTS)] set([ResolvedTo(CONTRACTS)] : R|kotlin/Int|): R|kotlin/Unit| { D|/variableWithExplicitType|.setValue#(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public final [IMPLICIT_TYPES_BODY_RESOLVE] var variableWithImplicitType: R|kotlin/Int|by R|/delegate| - public [IMPLICIT_TYPES_BODY_RESOLVE] get(): R|kotlin/Int| { + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] var variableWithImplicitType: R|kotlin/Int|by R|/delegate| + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] get(): R|kotlin/Int| { ^ D|/variableWithImplicitType|.R|SubstitutionOverride|(Null(null), ::R|/variableWithImplicitType|) } - public [IMPLICIT_TYPES_BODY_RESOLVE] set([IMPLICIT_TYPES_BODY_RESOLVE] : R|kotlin/Int|): R|kotlin/Unit| { + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] set([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] : R|kotlin/Int|): R|kotlin/Unit| { D|/variableWithImplicitType|.R|SubstitutionOverride|(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } FILE RAW TO BODY: -FILE: [IMPORTS] delegates.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] delegates.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/valueWithExplicitType|) R|/receive|(R|/valueWithImplicitType|) R|/variableWithExplicitType| = Int(10) R|/variableWithImplicitType| = Int(10) } - public final [BODY_RESOLVE] fun receive([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun receive([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] val delegate: R|kotlin/properties/ReadWriteProperty| = object : R|kotlin/properties/ReadWriteProperty| { - private [BODY_RESOLVE] [ContainingClassKey=] constructor(): R|| { + public final [ResolvedTo(BODY_RESOLVE)] val delegate: R|kotlin/properties/ReadWriteProperty| = object : R|kotlin/properties/ReadWriteProperty| { + private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=] constructor(): R|| { super() } - public open override operator [BODY_RESOLVE] fun getValue([BODY_RESOLVE] thisRef: R|kotlin/Any?|, [BODY_RESOLVE] property: R|kotlin/reflect/KProperty<*>|): R|kotlin/Int| { + public open override operator [ResolvedTo(BODY_RESOLVE)] fun getValue([ResolvedTo(BODY_RESOLVE)] thisRef: R|kotlin/Any?|, [ResolvedTo(BODY_RESOLVE)] property: R|kotlin/reflect/KProperty<*>|): R|kotlin/Int| { ^getValue Int(1) } - public open override operator [BODY_RESOLVE] fun setValue([BODY_RESOLVE] thisRef: R|kotlin/Any?|, [BODY_RESOLVE] property: R|kotlin/reflect/KProperty<*>|, [BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit| { + public open override operator [ResolvedTo(BODY_RESOLVE)] fun setValue([ResolvedTo(BODY_RESOLVE)] thisRef: R|kotlin/Any?|, [ResolvedTo(BODY_RESOLVE)] property: R|kotlin/reflect/KProperty<*>|, [ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit| { } } - public [BODY_RESOLVE] get(): R|kotlin/properties/ReadWriteProperty| - public final [BODY_RESOLVE] val valueWithExplicitType: R|kotlin/Int|by R|/delegate| - public [BODY_RESOLVE] get(): R|kotlin/Int| { + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/properties/ReadWriteProperty| + public final [ResolvedTo(BODY_RESOLVE)] val valueWithExplicitType: R|kotlin/Int|by R|/delegate| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| { ^ D|/valueWithExplicitType|.R|SubstitutionOverride|(Null(null), ::R|/valueWithExplicitType|) } - public final [BODY_RESOLVE] val valueWithImplicitType: R|kotlin/Int|by R|/delegate| - public [BODY_RESOLVE] get(): R|kotlin/Int| { + public final [ResolvedTo(BODY_RESOLVE)] val valueWithImplicitType: R|kotlin/Int|by R|/delegate| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| { ^ D|/valueWithImplicitType|.R|SubstitutionOverride|(Null(null), ::R|/valueWithImplicitType|) } - public final [BODY_RESOLVE] var variableWithExplicitType: R|kotlin/Int|by R|/delegate| - public [BODY_RESOLVE] get(): R|kotlin/Int| { + public final [ResolvedTo(BODY_RESOLVE)] var variableWithExplicitType: R|kotlin/Int|by R|/delegate| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| { ^ D|/variableWithExplicitType|.R|SubstitutionOverride|(Null(null), ::R|/variableWithExplicitType|) } - public [BODY_RESOLVE] set([BODY_RESOLVE] : R|kotlin/Int|): R|kotlin/Unit| { + public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] : R|kotlin/Int|): R|kotlin/Unit| { D|/variableWithExplicitType|.R|SubstitutionOverride|(Null(null), ::R|/variableWithExplicitType|, R|/variableWithExplicitType|) } - public final [BODY_RESOLVE] var variableWithImplicitType: R|kotlin/Int|by R|/delegate| - public [BODY_RESOLVE] get(): R|kotlin/Int| { + public final [ResolvedTo(BODY_RESOLVE)] var variableWithImplicitType: R|kotlin/Int|by R|/delegate| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| { ^ D|/variableWithImplicitType|.R|SubstitutionOverride|(Null(null), ::R|/variableWithImplicitType|) } - public [BODY_RESOLVE] set([BODY_RESOLVE] : R|kotlin/Int|): R|kotlin/Unit| { + public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] : R|kotlin/Int|): R|kotlin/Unit| { D|/variableWithImplicitType|.R|SubstitutionOverride|(Null(null), ::R|/variableWithImplicitType|, R|/variableWithImplicitType|) } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/enumEntry.txt b/analysis/low-level-api-fir/testdata/lazyResolve/enumEntry.txt index b4870bf123e..4aee9689ff4 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/enumEntry.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/enumEntry.txt @@ -1,406 +1,406 @@ RAW_FIR: -FILE: [RAW_FIR] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(RAW_FIR)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public? final? [RAW_FIR] enum class Foo : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=Foo] constructor(): R|Foo| { + public? final? [ResolvedTo(RAW_FIR)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @Anno() public final static [RAW_FIR] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION - public final static [RAW_FIR] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + @Anno() public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=Foo] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|Foo| { } - public final static [RAW_FIR] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } IMPORTS: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public? final? [RAW_FIR] enum class Foo : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=Foo] constructor(): R|Foo| { + public? final? [ResolvedTo(RAW_FIR)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @Anno() public final static [RAW_FIR] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION - public final static [RAW_FIR] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + @Anno() public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=Foo] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|Foo| { } - public final static [RAW_FIR] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public? final? [RAW_FIR] enum class Foo : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=Foo] constructor(): R|Foo| { + public? final? [ResolvedTo(RAW_FIR)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @Anno() public final static [COMPILER_REQUIRED_ANNOTATIONS] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION - public final static [RAW_FIR] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + @Anno() public final static [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=Foo] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|Foo| { } - public final static [RAW_FIR] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } COMPANION_GENERATION: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public? final? [RAW_FIR] enum class Foo : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=Foo] constructor(): R|Foo| { + public? final? [ResolvedTo(RAW_FIR)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @Anno() public final static [COMPANION_GENERATION] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION - public final static [RAW_FIR] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + @Anno() public final static [ResolvedTo(COMPANION_GENERATION)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=Foo] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|Foo| { } - public final static [RAW_FIR] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } SUPER_TYPES: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public? final? [RAW_FIR] enum class Foo : R|kotlin/Enum| { - private [RAW_FIR] [ContainingClassKey=Foo] constructor(): R|Foo| { + public? final? [ResolvedTo(RAW_FIR)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @Anno() public final static [SUPER_TYPES] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION - public final static [RAW_FIR] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + @Anno() public final static [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [RAW_FIR] [ContainingClassKey=Foo] fun valueOf([RAW_FIR] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(RAW_FIR)] value: R|kotlin/String|): R|Foo| { } - public final static [RAW_FIR] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [RAW_FIR] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(RAW_FIR)] get(): R|kotlin/enums/EnumEntries| } TYPES: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public? final? [SUPER_TYPES] enum class Foo : R|kotlin/Enum| { - private [SUPER_TYPES] [ContainingClassKey=Foo] constructor(): R|Foo| { + public? final? [ResolvedTo(SUPER_TYPES)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @R|Anno|() public final static [TYPES] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION - public final static [SUPER_TYPES] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + @R|Anno|() public final static [ResolvedTo(TYPES)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION + public final static [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [SUPER_TYPES] [ContainingClassKey=Foo] fun valueOf([SUPER_TYPES] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(SUPER_TYPES)] value: R|kotlin/String|): R|Foo| { } - public final static [SUPER_TYPES] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [SUPER_TYPES] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(SUPER_TYPES)] get(): R|kotlin/enums/EnumEntries| } STATUS: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public final [SUPER_TYPES] enum class Foo : R|kotlin/Enum| { - private [TYPES] [ContainingClassKey=Foo] constructor(): R|Foo| { + public final [ResolvedTo(SUPER_TYPES)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(TYPES)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @R|Anno|() public final static [STATUS] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION - public final static [TYPES] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + @R|Anno|() public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = LAZY_EXPRESSION + public final static [ResolvedTo(TYPES)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [TYPES] [ContainingClassKey=Foo] fun valueOf([TYPES] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(TYPES)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(TYPES)] value: R|kotlin/String|): R|Foo| { } - public final static [TYPES] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [TYPES] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(TYPES)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(TYPES)] get(): R|kotlin/enums/EnumEntries| } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public final [SUPER_TYPES] enum class Foo : R|kotlin/Enum| { - private [TYPES] [ContainingClassKey=Foo] constructor(): R|Foo| { + public final [ResolvedTo(SUPER_TYPES)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(TYPES)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @R|Anno|() public final static [EXPECT_ACTUAL_MATCHING] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { + @R|Anno|() public final static [ResolvedTo(EXPECT_ACTUAL_MATCHING)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super() } } - public final static [TYPES] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(TYPES)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [TYPES] [ContainingClassKey=Foo] fun valueOf([TYPES] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(TYPES)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(TYPES)] value: R|kotlin/String|): R|Foo| { } - public final static [TYPES] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [TYPES] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(TYPES)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(TYPES)] get(): R|kotlin/enums/EnumEntries| } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public final [STATUS] enum class Foo : R|kotlin/Enum| { - private [STATUS] [ContainingClassKey=Foo] constructor(): R|Foo| { + public final [ResolvedTo(STATUS)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(STATUS)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @R|Anno|() public final static [ARGUMENTS_OF_ANNOTATIONS] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { + @R|Anno|() public final static [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super() } } - public final static [STATUS] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [STATUS] [ContainingClassKey=Foo] fun valueOf([STATUS] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(STATUS)] value: R|kotlin/String|): R|Foo| { } - public final static [STATUS] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [STATUS] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(STATUS)] get(): R|kotlin/enums/EnumEntries| } CONTRACTS: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public final [STATUS] enum class Foo : R|kotlin/Enum| { - private [STATUS] [ContainingClassKey=Foo] constructor(): R|Foo| { + public final [ResolvedTo(STATUS)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(STATUS)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @R|Anno|() public final static [CONTRACTS] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { + @R|Anno|() public final static [ResolvedTo(CONTRACTS)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super() } } - public final static [STATUS] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [STATUS] [ContainingClassKey=Foo] fun valueOf([STATUS] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(STATUS)] value: R|kotlin/String|): R|Foo| { } - public final static [STATUS] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [STATUS] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(STATUS)] get(): R|kotlin/enums/EnumEntries| } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] annotation class Anno : R|kotlin/Annotation| { - public? [RAW_FIR] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] annotation class Anno : R|kotlin/Annotation| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public final [STATUS] enum class Foo : R|kotlin/Enum| { - private [STATUS] [ContainingClassKey=Foo] constructor(): R|Foo| { + public final [ResolvedTo(STATUS)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(STATUS)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @R|Anno|() public final static [IMPLICIT_TYPES_BODY_RESOLVE] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { + @R|Anno|() public final static [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super() } } - public final static [STATUS] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [STATUS] [ContainingClassKey=Foo] fun valueOf([STATUS] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(STATUS)] value: R|kotlin/String|): R|Foo| { } - public final static [STATUS] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [STATUS] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(STATUS)] get(): R|kotlin/enums/EnumEntries| } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public final [SUPER_TYPES] annotation class Anno : R|kotlin/Annotation| { - public [STATUS] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(SUPER_TYPES)] annotation class Anno : R|kotlin/Annotation| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public final [STATUS] enum class Foo : R|kotlin/Enum| { - private [STATUS] [ContainingClassKey=Foo] constructor(): R|Foo| { + public final [ResolvedTo(STATUS)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(STATUS)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @R|Anno|() public final static [ANNOTATIONS_ARGUMENTS_MAPPING] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { + @R|Anno|() public final static [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super() } } - public final static [STATUS] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [STATUS] [ContainingClassKey=Foo] fun valueOf([STATUS] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(STATUS)] value: R|kotlin/String|): R|Foo| { } - public final static [STATUS] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [STATUS] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(STATUS)] get(): R|kotlin/enums/EnumEntries| } BODY_RESOLVE: -FILE: [IMPORTS] enumEntry.kt - [RAW_FIR] annotations container - public final [SUPER_TYPES] annotation class Anno : R|kotlin/Annotation| { - public [STATUS] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(SUPER_TYPES)] annotation class Anno : R|kotlin/Annotation| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Anno] constructor(): R|Anno| { LAZY_super } } - public final [STATUS] enum class Foo : R|kotlin/Enum| { - private [STATUS] [ContainingClassKey=Foo] constructor(): R|Foo| { + public final [ResolvedTo(STATUS)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(STATUS)] [ContainingClassKey=Foo] constructor(): R|Foo| { LAZY_super|> } - @R|Anno|() public final static [BODY_RESOLVE] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { - private [BODY_RESOLVE] [ContainingClassKey=] constructor(): R|| { + @R|Anno|() public final static [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { + private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=] constructor(): R|| { super() } } - public final static [STATUS] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [STATUS] [ContainingClassKey=Foo] fun valueOf([STATUS] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(STATUS)] value: R|kotlin/String|): R|Foo| { } - public final static [STATUS] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [STATUS] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(STATUS)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(STATUS)] get(): R|kotlin/enums/EnumEntries| } FILE RAW TO BODY: -FILE: [IMPORTS] enumEntry.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] annotation class Anno : R|kotlin/Annotation| { - public [BODY_RESOLVE] [ContainingClassKey=Anno] constructor(): R|Anno| { +FILE: [ResolvedTo(IMPORTS)] enumEntry.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] annotation class Anno : R|kotlin/Annotation| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Anno] constructor(): R|Anno| { super() } } - public final [BODY_RESOLVE] enum class Foo : R|kotlin/Enum| { - private [BODY_RESOLVE] [ContainingClassKey=Foo] constructor(): R|Foo| { + public final [ResolvedTo(BODY_RESOLVE)] enum class Foo : R|kotlin/Enum| { + private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] constructor(): R|Foo| { super|>() } - @R|Anno|() public final static [BODY_RESOLVE] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { - private [BODY_RESOLVE] [ContainingClassKey=] constructor(): R|| { + @R|Anno|() public final static [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] enum entry ResolveMe: R|Foo| = object : R|Foo| { + private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=] constructor(): R|| { super() } } - public final static [BODY_RESOLVE] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { + public final static [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] fun values(): R|kotlin/Array| { } - public final static [BODY_RESOLVE] [ContainingClassKey=Foo] fun valueOf([BODY_RESOLVE] value: R|kotlin/String|): R|Foo| { + public final static [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] fun valueOf([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|Foo| { } - public final static [BODY_RESOLVE] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| - public [BODY_RESOLVE] get(): R|kotlin/enums/EnumEntries| + public final static [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] val entries: R|kotlin/enums/EnumEntries| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/enums/EnumEntries| } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/errors/anonymousObjectInInvalidPosition.txt b/analysis/low-level-api-fir/testdata/lazyResolve/errors/anonymousObjectInInvalidPosition.txt index 86370443681..d7cfa109820 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/errors/anonymousObjectInInvalidPosition.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/errors/anonymousObjectInInvalidPosition.txt @@ -1,203 +1,203 @@ RAW_FIR: -FILE: [RAW_FIR] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final? [RAW_FIR] val resolveMe: A = LAZY_EXPRESSION - private [RAW_FIR] get(): A - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| +FILE: [ResolvedTo(RAW_FIR)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final? [ResolvedTo(RAW_FIR)] val resolveMe: A = LAZY_EXPRESSION + private [ResolvedTo(RAW_FIR)] get(): A + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } IMPORTS: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final? [RAW_FIR] val resolveMe: A = LAZY_EXPRESSION - private [RAW_FIR] get(): A - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final? [ResolvedTo(RAW_FIR)] val resolveMe: A = LAZY_EXPRESSION + private [ResolvedTo(RAW_FIR)] get(): A + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final? [COMPILER_REQUIRED_ANNOTATIONS] val resolveMe: A = LAZY_EXPRESSION - private [COMPILER_REQUIRED_ANNOTATIONS] get(): A - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] val resolveMe: A = LAZY_EXPRESSION + private [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] get(): A + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } COMPANION_GENERATION: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final? [COMPANION_GENERATION] val resolveMe: A = LAZY_EXPRESSION - private [COMPANION_GENERATION] get(): A - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final? [ResolvedTo(COMPANION_GENERATION)] val resolveMe: A = LAZY_EXPRESSION + private [ResolvedTo(COMPANION_GENERATION)] get(): A + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } SUPER_TYPES: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final? [SUPER_TYPES] val resolveMe: A = LAZY_EXPRESSION - private [SUPER_TYPES] get(): A - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final? [ResolvedTo(SUPER_TYPES)] val resolveMe: A = LAZY_EXPRESSION + private [ResolvedTo(SUPER_TYPES)] get(): A + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } TYPES: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final? [TYPES] val resolveMe: = LAZY_EXPRESSION - private [TYPES] get(): - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final? [ResolvedTo(TYPES)] val resolveMe: = LAZY_EXPRESSION + private [ResolvedTo(TYPES)] get(): + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } STATUS: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final [STATUS] val resolveMe: = LAZY_EXPRESSION - private [STATUS] get(): - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final [ResolvedTo(STATUS)] val resolveMe: = LAZY_EXPRESSION + private [ResolvedTo(STATUS)] get(): + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final [EXPECT_ACTUAL_MATCHING] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : A { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : A { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super<>() } - public? open? override [RAW_FIR] fun x(): R|kotlin/Unit| { + public? open? override [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| { } } - private [EXPECT_ACTUAL_MATCHING] get(): - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| + private [ResolvedTo(EXPECT_ACTUAL_MATCHING)] get(): + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final [ARGUMENTS_OF_ANNOTATIONS] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : A { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : A { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super<>() } - public? open? override [RAW_FIR] fun x(): R|kotlin/Unit| { + public? open? override [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| { } } - private [ARGUMENTS_OF_ANNOTATIONS] get(): - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| + private [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] get(): + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } CONTRACTS: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final [CONTRACTS] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : A { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final [ResolvedTo(CONTRACTS)] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : A { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super<>() } - public? open? override [RAW_FIR] fun x(): R|kotlin/Unit| { + public? open? override [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| { } } - private [CONTRACTS] get(): - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| + private [ResolvedTo(CONTRACTS)] get(): + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final [IMPLICIT_TYPES_BODY_RESOLVE] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : A { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : A { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super<>() } - public? open? override [RAW_FIR] fun x(): R|kotlin/Unit| { + public? open? override [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| { } } - private [IMPLICIT_TYPES_BODY_RESOLVE] get(): - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| + private [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] get(): + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final [ANNOTATIONS_ARGUMENTS_MAPPING] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : A { - private [RAW_FIR] [ContainingClassKey=] constructor(): R|| { +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : A { + private [ResolvedTo(RAW_FIR)] [ContainingClassKey=] constructor(): R|| { super<>() } - public? open? override [RAW_FIR] fun x(): R|kotlin/Unit| { + public? open? override [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| { } } - private [ANNOTATIONS_ARGUMENTS_MAPPING] get(): - public? final? [RAW_FIR] interface A<[RAW_FIR] T> : R|kotlin/Any| { - public? final? [RAW_FIR] fun x(): R|kotlin/Unit| + private [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] get(): + public? final? [ResolvedTo(RAW_FIR)] interface A<[ResolvedTo(RAW_FIR)] T> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun x(): R|kotlin/Unit| } BODY_RESOLVE: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [RAW_FIR] annotations container - private final [BODY_RESOLVE] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : R|A| { - private [BODY_RESOLVE] [ContainingClassKey=] constructor(): R|| { +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(RAW_FIR)] annotations container + private final [ResolvedTo(BODY_RESOLVE)] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : R|A| { + private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=] constructor(): R|| { super() } - public open override [BODY_RESOLVE] fun x(): R|kotlin/Unit| { + public open override [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| { } } - private [BODY_RESOLVE] get(): - public abstract [TYPES] interface A<[TYPES] T> : R|kotlin/Any| { - public abstract [TYPES] fun x(): R|kotlin/Unit| + private [ResolvedTo(BODY_RESOLVE)] get(): + public abstract [ResolvedTo(TYPES)] interface A<[ResolvedTo(TYPES)] T> : R|kotlin/Any| { + public abstract [ResolvedTo(TYPES)] fun x(): R|kotlin/Unit| } FILE RAW TO BODY: -FILE: [IMPORTS] anonymousObjectInInvalidPosition.kt - [BODY_RESOLVE] annotations container - private final [BODY_RESOLVE] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : R|A| { - private [BODY_RESOLVE] [ContainingClassKey=] constructor(): R|| { +FILE: [ResolvedTo(IMPORTS)] anonymousObjectInInvalidPosition.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + private final [ResolvedTo(BODY_RESOLVE)] val resolveMe: = ERROR_EXPR(Should have initializer)Null(null) = object : R|A| { + private [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=] constructor(): R|| { super() } - public open override [BODY_RESOLVE] fun x(): R|kotlin/Unit| { + public open override [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| { } } - private [BODY_RESOLVE] get(): - public abstract [BODY_RESOLVE] interface A<[BODY_RESOLVE] T> : R|kotlin/Any| { - public abstract [BODY_RESOLVE] fun x(): R|kotlin/Unit| + private [ResolvedTo(BODY_RESOLVE)] get(): + public abstract [ResolvedTo(BODY_RESOLVE)] interface A<[ResolvedTo(BODY_RESOLVE)] T> : R|kotlin/Any| { + public abstract [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Unit| } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/functionWithParameter.txt b/analysis/low-level-api-fir/testdata/lazyResolve/functionWithParameter.txt index 07d07b58a4e..11feeec84d5 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/functionWithParameter.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/functionWithParameter.txt @@ -1,112 +1,112 @@ RAW_FIR: -FILE: [RAW_FIR] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(RAW_FIR)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public? final? [RAW_FIR] fun resolveMe([RAW_FIR] param: I): { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe([ResolvedTo(RAW_FIR)] param: I): { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public? final? [RAW_FIR] fun resolveMe([RAW_FIR] param: I): { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe([ResolvedTo(RAW_FIR)] param: I): { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe([COMPILER_REQUIRED_ANNOTATIONS] param: I): { LAZY_BLOCK } + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe([ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] param: I): { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public? final? [COMPANION_GENERATION] fun resolveMe([COMPANION_GENERATION] param: I): { LAZY_BLOCK } + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe([ResolvedTo(COMPANION_GENERATION)] param: I): { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public? final? [SUPER_TYPES] fun resolveMe([SUPER_TYPES] param: I): { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe([ResolvedTo(SUPER_TYPES)] param: I): { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public? final? [TYPES] fun resolveMe([TYPES] param: R|I|): { LAZY_BLOCK } + public? final? [ResolvedTo(TYPES)] fun resolveMe([ResolvedTo(TYPES)] param: R|I|): { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public final [STATUS] fun resolveMe([STATUS] param: R|I|): { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun resolveMe([ResolvedTo(STATUS)] param: R|I|): { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe([EXPECT_ACTUAL_MATCHING] param: R|I|): { + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe([ResolvedTo(EXPECT_ACTUAL_MATCHING)] param: R|I|): { ^resolveMe Unit# } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe([ARGUMENTS_OF_ANNOTATIONS] param: R|I|): { + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe([ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] param: R|I|): { ^resolveMe Unit# } CONTRACTS: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public final [CONTRACTS] fun resolveMe([CONTRACTS] param: R|I|): { + public final [ResolvedTo(CONTRACTS)] fun resolveMe([ResolvedTo(CONTRACTS)] param: R|I|): { ^resolveMe Unit# } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe([IMPLICIT_TYPES_BODY_RESOLVE] param: R|I|): R|kotlin/Unit| { + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] param: R|I|): R|kotlin/Unit| { ^resolveMe Q|kotlin/Unit| } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe([ANNOTATIONS_ARGUMENTS_MAPPING] param: R|I|): R|kotlin/Unit| { + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] param: R|I|): R|kotlin/Unit| { ^resolveMe Q|kotlin/Unit| } BODY_RESOLVE: -FILE: [IMPORTS] functionWithParameter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] interface I : R|kotlin/Any| { } - public final [BODY_RESOLVE] fun resolveMe([BODY_RESOLVE] param: R|I|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe([ResolvedTo(BODY_RESOLVE)] param: R|I|): R|kotlin/Unit| { ^resolveMe Q|kotlin/Unit| } FILE RAW TO BODY: -FILE: [IMPORTS] functionWithParameter.kt - [BODY_RESOLVE] annotations container - public abstract [BODY_RESOLVE] interface I : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] functionWithParameter.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public abstract [ResolvedTo(BODY_RESOLVE)] interface I : R|kotlin/Any| { } - public final [BODY_RESOLVE] fun resolveMe([BODY_RESOLVE] param: R|I|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe([ResolvedTo(BODY_RESOLVE)] param: R|I|): R|kotlin/Unit| { ^resolveMe Q|kotlin/Unit| } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionCallWithGenericResult.txt b/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionCallWithGenericResult.txt index 7d5a6f5185f..3697e53941e 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionCallWithGenericResult.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionCallWithGenericResult.txt @@ -1,186 +1,186 @@ RAW_FIR: -FILE: [RAW_FIR] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(RAW_FIR)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { - [RAW_FIR] lval x: = bar#() + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] lval x: = bar#() } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { - [RAW_FIR] lval x: = bar#() + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] lval x: = bar#() } CONTRACTS: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { - [RAW_FIR] lval x: = bar#() + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] lval x: = bar#() } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { - [RAW_FIR] lval x: = bar#() + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] lval x: = bar#() } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] fun bar(): Foo? { LAZY_BLOCK } - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { - [RAW_FIR] lval x: = bar#() + public? final? [ResolvedTo(RAW_FIR)] fun bar(): Foo? { LAZY_BLOCK } + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] lval x: = bar#() } BODY_RESOLVE: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public final [CONTRACTS] fun bar(): R|Foo?| { + public final [ResolvedTo(CONTRACTS)] fun bar(): R|Foo?| { ^bar Null(null) } - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { - [BODY_RESOLVE] lval x: R|Foo?| = R|/bar|() + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(BODY_RESOLVE)] lval x: R|Foo?| = R|/bar|() } FILE RAW TO BODY: -FILE: [IMPORTS] functionCallWithGenericResult.kt - [BODY_RESOLVE] annotations container - public open [BODY_RESOLVE] class Foo<[BODY_RESOLVE] T : R|kotlin/CharSequence|> : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=Foo] constructor<[BODY_RESOLVE] T : R|kotlin/CharSequence|>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionCallWithGenericResult.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public open [ResolvedTo(BODY_RESOLVE)] class Foo<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/CharSequence|> : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] constructor<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/CharSequence|>(): R|Foo| { super() } } - public final [BODY_RESOLVE] fun bar(): R|Foo?| { + public final [ResolvedTo(BODY_RESOLVE)] fun bar(): R|Foo?| { ^bar Null(null) } - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { - [BODY_RESOLVE] lval x: R|Foo?| = R|/bar|() + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(BODY_RESOLVE)] lval x: R|Foo?| = R|/bar|() } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionWithGenericExpectedTypeInside.txt b/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionWithGenericExpectedTypeInside.txt index e596ed33565..9c7f6e99294 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionWithGenericExpectedTypeInside.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionWithGenericExpectedTypeInside.txt @@ -1,270 +1,270 @@ RAW_FIR: -FILE: [RAW_FIR] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(RAW_FIR)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { - [RAW_FIR] lval x: Foo = bar#() + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] lval x: Foo = bar#() } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { - [RAW_FIR] lval x: Foo = bar#() + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] lval x: Foo = bar#() } CONTRACTS: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { - [RAW_FIR] lval x: Foo = bar#() + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] lval x: Foo = bar#() } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { - [RAW_FIR] lval x: Foo = bar#() + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] lval x: Foo = bar#() } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class Foo<[RAW_FIR] T : CharSequence> : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Foo] constructor<[RAW_FIR] T : CharSequence>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class Foo<[ResolvedTo(RAW_FIR)] T : CharSequence> : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor<[ResolvedTo(RAW_FIR)] T : CharSequence>(): R|Foo| { LAZY_super } } - public? final? [RAW_FIR] class Bar : Foo { - public? [RAW_FIR] [ContainingClassKey=Bar] constructor(): R|Bar| { + public? final? [ResolvedTo(RAW_FIR)] class Bar : Foo { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public? final? [RAW_FIR] fun bar(): { LAZY_BLOCK } - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { - [RAW_FIR] lval x: Foo = bar#() + public? final? [ResolvedTo(RAW_FIR)] fun bar(): { LAZY_BLOCK } + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(RAW_FIR)] lval x: Foo = bar#() } BODY_RESOLVE: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [RAW_FIR] annotations container - public open [TYPES] class Foo<[TYPES] T : R|kotlin/CharSequence|> : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=Foo] constructor<[TYPES] T : R|kotlin/CharSequence|>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(TYPES)] class Foo<[ResolvedTo(TYPES)] T : R|kotlin/CharSequence|> : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=Foo] constructor<[ResolvedTo(TYPES)] T : R|kotlin/CharSequence|>(): R|Foo| { LAZY_super } } - public final [TYPES] class Bar : R|Foo| { - public [STATUS] [ContainingClassKey=Bar] constructor(): R|Bar| { + public final [ResolvedTo(TYPES)] class Bar : R|Foo| { + public [ResolvedTo(STATUS)] [ContainingClassKey=Bar] constructor(): R|Bar| { LAZY_super<> } } - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun bar(): R|Bar| { + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun bar(): R|Bar| { ^bar R|/Bar.Bar|() } - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { - [BODY_RESOLVE] lval x: R|Foo| = R|/bar|() + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(BODY_RESOLVE)] lval x: R|Foo| = R|/bar|() } FILE RAW TO BODY: -FILE: [IMPORTS] functionWithGenericExpectedTypeInside.kt - [BODY_RESOLVE] annotations container - public open [BODY_RESOLVE] class Foo<[BODY_RESOLVE] T : R|kotlin/CharSequence|> : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=Foo] constructor<[BODY_RESOLVE] T : R|kotlin/CharSequence|>(): R|Foo| { +FILE: [ResolvedTo(IMPORTS)] functionWithGenericExpectedTypeInside.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public open [ResolvedTo(BODY_RESOLVE)] class Foo<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/CharSequence|> : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] constructor<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/CharSequence|>(): R|Foo| { super() } } - public final [BODY_RESOLVE] class Bar : R|Foo| { - public [BODY_RESOLVE] [ContainingClassKey=Bar] constructor(): R|Bar| { + public final [ResolvedTo(BODY_RESOLVE)] class Bar : R|Foo| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Bar] constructor(): R|Bar| { super|>() } } - public final [BODY_RESOLVE] fun bar(): R|Bar| { + public final [ResolvedTo(BODY_RESOLVE)] fun bar(): R|Bar| { ^bar R|/Bar.Bar|() } - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { - [BODY_RESOLVE] lval x: R|Foo| = R|/bar|() + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { + [ResolvedTo(BODY_RESOLVE)] lval x: R|Foo| = R|/bar|() } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionWithTypeParameters.txt b/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionWithTypeParameters.txt index ae842b8d554..3a2fdb5f9d9 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionWithTypeParameters.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/functions/functionWithTypeParameters.txt @@ -1,77 +1,77 @@ RAW_FIR: -FILE: [RAW_FIR] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun <[RAW_FIR] T : Int, [RAW_FIR] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(RAW_FIR)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] T : Int, [ResolvedTo(RAW_FIR)] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun <[RAW_FIR] T : Int, [RAW_FIR] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] T : Int, [ResolvedTo(RAW_FIR)] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun <[COMPILER_REQUIRED_ANNOTATIONS] T : Int, [COMPILER_REQUIRED_ANNOTATIONS] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun <[ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] T : Int, [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun <[COMPANION_GENERATION] T : Int, [COMPANION_GENERATION] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun <[ResolvedTo(COMPANION_GENERATION)] T : Int, [ResolvedTo(COMPANION_GENERATION)] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun <[SUPER_TYPES] T : Int, [SUPER_TYPES] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun <[ResolvedTo(SUPER_TYPES)] T : Int, [ResolvedTo(SUPER_TYPES)] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun <[TYPES] T : R|kotlin/Int|, [TYPES] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun <[ResolvedTo(TYPES)] T : R|kotlin/Int|, [ResolvedTo(TYPES)] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public final [STATUS] fun <[STATUS] T : R|kotlin/Int|, [STATUS] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun <[ResolvedTo(STATUS)] T : R|kotlin/Int|, [ResolvedTo(STATUS)] K> resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun <[EXPECT_ACTUAL_MATCHING] T : R|kotlin/Int|, [EXPECT_ACTUAL_MATCHING] K> resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun <[ResolvedTo(EXPECT_ACTUAL_MATCHING)] T : R|kotlin/Int|, [ResolvedTo(EXPECT_ACTUAL_MATCHING)] K> resolveMe(): R|kotlin/Unit| { } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun <[ARGUMENTS_OF_ANNOTATIONS] T : R|kotlin/Int|, [ARGUMENTS_OF_ANNOTATIONS] K> resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun <[ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] T : R|kotlin/Int|, [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] K> resolveMe(): R|kotlin/Unit| { } CONTRACTS: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun <[CONTRACTS] T : R|kotlin/Int|, [CONTRACTS] K> resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun <[ResolvedTo(CONTRACTS)] T : R|kotlin/Int|, [ResolvedTo(CONTRACTS)] K> resolveMe(): R|kotlin/Unit| { } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun <[IMPLICIT_TYPES_BODY_RESOLVE] T : R|kotlin/Int|, [IMPLICIT_TYPES_BODY_RESOLVE] K> resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun <[ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] K> resolveMe(): R|kotlin/Unit| { } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun <[ANNOTATIONS_ARGUMENTS_MAPPING] T : R|kotlin/Int|, [ANNOTATIONS_ARGUMENTS_MAPPING] K> resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun <[ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] T : R|kotlin/Int|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] K> resolveMe(): R|kotlin/Unit| { } BODY_RESOLVE: -FILE: [IMPORTS] functionWithTypeParameters.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun <[BODY_RESOLVE] T : R|kotlin/Int|, [BODY_RESOLVE] K> resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] K> resolveMe(): R|kotlin/Unit| { } FILE RAW TO BODY: -FILE: [IMPORTS] functionWithTypeParameters.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun <[BODY_RESOLVE] T : R|kotlin/Int|, [BODY_RESOLVE] K> resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] functionWithTypeParameters.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] K> resolveMe(): R|kotlin/Unit| { } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/lambdaAsSAMInterface.txt b/analysis/low-level-api-fir/testdata/lazyResolve/lambdaAsSAMInterface.txt index 943f0c614cd..22322f92b98 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/lambdaAsSAMInterface.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/lambdaAsSAMInterface.txt @@ -1,260 +1,260 @@ RAW_FIR: -FILE: [RAW_FIR] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(RAW_FIR)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { - testMe#( = [STATUS] testMe@fun .([RAW_FIR] b: ): { + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { + testMe#( = [ResolvedTo(RAW_FIR)] testMe@fun .([ResolvedTo(RAW_FIR)] b: ): { b# } ) } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { - testMe#( = [STATUS] testMe@fun .([RAW_FIR] b: ): { + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { + testMe#( = [ResolvedTo(RAW_FIR)] testMe@fun .([ResolvedTo(RAW_FIR)] b: ): { b# } ) } CONTRACTS: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { - testMe#( = [STATUS] testMe@fun .([RAW_FIR] b: ): { + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { + testMe#( = [ResolvedTo(RAW_FIR)] testMe@fun .([ResolvedTo(RAW_FIR)] b: ): { b# } ) } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { - testMe#( = [STATUS] testMe@fun .([RAW_FIR] b: ): { + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { + testMe#( = [ResolvedTo(RAW_FIR)] testMe@fun .([ResolvedTo(RAW_FIR)] b: ): { b# } ) } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public? final? fun [RAW_FIR] interface Foo : R|kotlin/Any| { - public? final? [RAW_FIR] fun foo([RAW_FIR] a: Arg): Arg + public? final? fun [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: Arg): Arg } - public? final? [RAW_FIR] fun testMe([RAW_FIR] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { - testMe#( = [STATUS] testMe@fun .([RAW_FIR] b: ): { + public? final? [ResolvedTo(RAW_FIR)] fun testMe([ResolvedTo(RAW_FIR)] f: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { + testMe#( = [ResolvedTo(RAW_FIR)] testMe@fun .([ResolvedTo(RAW_FIR)] b: ): { b# } ) } BODY_RESOLVE: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class Arg : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class Arg : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { LAZY_super } } - public abstract fun [SUPER_TYPES] interface Foo : R|kotlin/Any| { - public abstract [STATUS] fun foo([STATUS] a: R|foo/Arg|): R|foo/Arg| + public abstract fun [ResolvedTo(SUPER_TYPES)] interface Foo : R|kotlin/Any| { + public abstract [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] a: R|foo/Arg|): R|foo/Arg| } - public final [CONTRACTS] fun testMe([CONTRACTS] f: R|foo/Foo|): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun testMe([ResolvedTo(CONTRACTS)] f: R|foo/Foo|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { - R|foo/testMe|( = [BODY_RESOLVE] [MatchingParameterFunctionTypeKey=foo/Foo] testMe@fun ([BODY_RESOLVE] b: R|foo/Arg|): R|foo/Arg| { + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { + R|foo/testMe|( = [ResolvedTo(BODY_RESOLVE)] [MatchingParameterFunctionTypeKey=foo/Foo] testMe@fun ([ResolvedTo(BODY_RESOLVE)] b: R|foo/Arg|): R|foo/Arg| { ^ R|/b| } ) } FILE RAW TO BODY: -FILE: [IMPORTS] lambdaAsSAMInterface.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] class Arg : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { +FILE: [ResolvedTo(IMPORTS)] lambdaAsSAMInterface.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] class Arg : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Arg] constructor(): R|foo/Arg| { super() } } - public abstract fun [BODY_RESOLVE] interface Foo : R|kotlin/Any| { - public abstract [BODY_RESOLVE] fun foo([BODY_RESOLVE] a: R|foo/Arg|): R|foo/Arg| + public abstract fun [ResolvedTo(BODY_RESOLVE)] interface Foo : R|kotlin/Any| { + public abstract [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] a: R|foo/Arg|): R|foo/Arg| } - public final [BODY_RESOLVE] fun testMe([BODY_RESOLVE] f: R|foo/Foo|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun testMe([ResolvedTo(BODY_RESOLVE)] f: R|foo/Foo|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { - R|foo/testMe|( = [BODY_RESOLVE] [MatchingParameterFunctionTypeKey=foo/Foo] testMe@fun ([BODY_RESOLVE] b: R|foo/Arg|): R|foo/Arg| { + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { + R|foo/testMe|( = [ResolvedTo(BODY_RESOLVE)] [MatchingParameterFunctionTypeKey=foo/Foo] testMe@fun ([ResolvedTo(BODY_RESOLVE)] b: R|foo/Arg|): R|foo/Arg| { ^ R|/b| } ) diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/parameterOfNonLocalSetter.txt b/analysis/low-level-api-fir/testdata/lazyResolve/parameterOfNonLocalSetter.txt index 1b937d7ea0b..7626c5debf3 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/parameterOfNonLocalSetter.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/parameterOfNonLocalSetter.txt @@ -1,209 +1,209 @@ RAW_FIR: -FILE: [RAW_FIR] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class X : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(RAW_FIR)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [RAW_FIR] var x: Int = LAZY_EXPRESSION - public? [RAW_FIR] [ContainingClassKey=X] get(): Int - public? [RAW_FIR] [ContainingClassKey=X] set([RAW_FIR] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var x: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] get(): Int + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] set([ResolvedTo(RAW_FIR)] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } } IMPORTS: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class X : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [RAW_FIR] var x: Int = LAZY_EXPRESSION - public? [RAW_FIR] [ContainingClassKey=X] get(): Int - public? [RAW_FIR] [ContainingClassKey=X] set([RAW_FIR] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var x: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] get(): Int + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] set([ResolvedTo(RAW_FIR)] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class X : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [COMPILER_REQUIRED_ANNOTATIONS] var x: Int = LAZY_EXPRESSION - public? [COMPILER_REQUIRED_ANNOTATIONS] [ContainingClassKey=X] get(): Int - public? [COMPILER_REQUIRED_ANNOTATIONS] [ContainingClassKey=X] set([COMPILER_REQUIRED_ANNOTATIONS] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] var x: Int = LAZY_EXPRESSION + public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] [ContainingClassKey=X] get(): Int + public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] [ContainingClassKey=X] set([ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } } COMPANION_GENERATION: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class X : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [COMPANION_GENERATION] var x: Int = LAZY_EXPRESSION - public? [COMPANION_GENERATION] [ContainingClassKey=X] get(): Int - public? [COMPANION_GENERATION] [ContainingClassKey=X] set([COMPANION_GENERATION] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(COMPANION_GENERATION)] var x: Int = LAZY_EXPRESSION + public? [ResolvedTo(COMPANION_GENERATION)] [ContainingClassKey=X] get(): Int + public? [ResolvedTo(COMPANION_GENERATION)] [ContainingClassKey=X] set([ResolvedTo(COMPANION_GENERATION)] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } } SUPER_TYPES: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class X : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [SUPER_TYPES] var x: Int = LAZY_EXPRESSION - public? [SUPER_TYPES] [ContainingClassKey=X] get(): Int - public? [SUPER_TYPES] [ContainingClassKey=X] set([SUPER_TYPES] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] var x: Int = LAZY_EXPRESSION + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=X] get(): Int + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=X] set([ResolvedTo(SUPER_TYPES)] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } } TYPES: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] class X : R|kotlin/Any| { - public? [SUPER_TYPES] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] class X : R|kotlin/Any| { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [TYPES] var x: R|kotlin/Int| = LAZY_EXPRESSION - public? [TYPES] [ContainingClassKey=X] get(): R|kotlin/Int| - public? [TYPES] [ContainingClassKey=X] set([TYPES] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(TYPES)] var x: R|kotlin/Int| = LAZY_EXPRESSION + public? [ResolvedTo(TYPES)] [ContainingClassKey=X] get(): R|kotlin/Int| + public? [ResolvedTo(TYPES)] [ContainingClassKey=X] set([ResolvedTo(TYPES)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } } STATUS: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public final [SUPER_TYPES] class X : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(SUPER_TYPES)] class X : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [STATUS] var x: R|kotlin/Int| = LAZY_EXPRESSION - public [STATUS] [ContainingClassKey=X] get(): R|kotlin/Int| - public [STATUS] [ContainingClassKey=X] set([STATUS] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] var x: R|kotlin/Int| = LAZY_EXPRESSION + public [ResolvedTo(STATUS)] [ContainingClassKey=X] get(): R|kotlin/Int| + public [ResolvedTo(STATUS)] [ContainingClassKey=X] set([ResolvedTo(STATUS)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public final [SUPER_TYPES] class X : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(SUPER_TYPES)] class X : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [EXPECT_ACTUAL_MATCHING] var x: R|kotlin/Int| = IntegerLiteral(2) - public [EXPECT_ACTUAL_MATCHING] [ContainingClassKey=X] get(): R|kotlin/Int| - public [EXPECT_ACTUAL_MATCHING] [ContainingClassKey=X] set([EXPECT_ACTUAL_MATCHING] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] var x: R|kotlin/Int| = IntegerLiteral(2) + public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] [ContainingClassKey=X] get(): R|kotlin/Int| + public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] [ContainingClassKey=X] set([ResolvedTo(EXPECT_ACTUAL_MATCHING)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Unit# } } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public final [STATUS] class X : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [ARGUMENTS_OF_ANNOTATIONS] var x: R|kotlin/Int| = IntegerLiteral(2) - public [ARGUMENTS_OF_ANNOTATIONS] [ContainingClassKey=X] get(): R|kotlin/Int| - public [ARGUMENTS_OF_ANNOTATIONS] [ContainingClassKey=X] set([ARGUMENTS_OF_ANNOTATIONS] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] var x: R|kotlin/Int| = IntegerLiteral(2) + public [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] [ContainingClassKey=X] get(): R|kotlin/Int| + public [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] [ContainingClassKey=X] set([ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Unit# } } CONTRACTS: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public final [STATUS] class X : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [CONTRACTS] var x: R|kotlin/Int| = IntegerLiteral(2) - public [CONTRACTS] [ContainingClassKey=X] get(): R|kotlin/Int| - public [CONTRACTS] [ContainingClassKey=X] set([CONTRACTS] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] var x: R|kotlin/Int| = IntegerLiteral(2) + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=X] get(): R|kotlin/Int| + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=X] set([ResolvedTo(CONTRACTS)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Unit# } } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public final [STATUS] class X : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [IMPLICIT_TYPES_BODY_RESOLVE] var x: R|kotlin/Int| = IntegerLiteral(2) - public [IMPLICIT_TYPES_BODY_RESOLVE] [ContainingClassKey=X] get(): R|kotlin/Int| - public [IMPLICIT_TYPES_BODY_RESOLVE] [ContainingClassKey=X] set([IMPLICIT_TYPES_BODY_RESOLVE] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] var x: R|kotlin/Int| = IntegerLiteral(2) + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=X] get(): R|kotlin/Int| + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=X] set([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Unit# } } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public final [STATUS] class X : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [ANNOTATIONS_ARGUMENTS_MAPPING] var x: R|kotlin/Int| = IntegerLiteral(2) - public [ANNOTATIONS_ARGUMENTS_MAPPING] [ContainingClassKey=X] get(): R|kotlin/Int| - public [ANNOTATIONS_ARGUMENTS_MAPPING] [ContainingClassKey=X] set([ANNOTATIONS_ARGUMENTS_MAPPING] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] var x: R|kotlin/Int| = IntegerLiteral(2) + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] get(): R|kotlin/Int| + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=X] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Unit# } } BODY_RESOLVE: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [RAW_FIR] annotations container - public final [STATUS] class X : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [BODY_RESOLVE] var x: R|kotlin/Int| = Int(2) - public [BODY_RESOLVE] [ContainingClassKey=X] get(): R|kotlin/Int| - public [BODY_RESOLVE] [ContainingClassKey=X] set([BODY_RESOLVE] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] var x: R|kotlin/Int| = Int(2) + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] get(): R|kotlin/Int| + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] set([ResolvedTo(BODY_RESOLVE)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Q|kotlin/Unit| } } FILE RAW TO BODY: -FILE: [IMPORTS] parameterOfNonLocalSetter.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] class X : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] parameterOfNonLocalSetter.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] constructor(): R|X| { super() } - public final [BODY_RESOLVE] var x: R|kotlin/Int| = Int(2) - public [BODY_RESOLVE] [ContainingClassKey=X] get(): R|kotlin/Int| - public [BODY_RESOLVE] [ContainingClassKey=X] set([BODY_RESOLVE] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] var x: R|kotlin/Int| = Int(2) + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] get(): R|kotlin/Int| + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] set([ResolvedTo(BODY_RESOLVE)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Q|kotlin/Unit| } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/properties/propertyWithTypeParameters.txt b/analysis/low-level-api-fir/testdata/lazyResolve/properties/propertyWithTypeParameters.txt index 2258a06f442..5f3259bace6 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/properties/propertyWithTypeParameters.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/properties/propertyWithTypeParameters.txt @@ -1,98 +1,98 @@ RAW_FIR: -FILE: [RAW_FIR] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] val <[RAW_FIR] T : Int, [RAW_FIR] K> T.resolveMe: K - public? [RAW_FIR] get(): K { LAZY_BLOCK } +FILE: [ResolvedTo(RAW_FIR)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] val <[ResolvedTo(RAW_FIR)] T : Int, [ResolvedTo(RAW_FIR)] K> T.resolveMe: K + public? [ResolvedTo(RAW_FIR)] get(): K { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] val <[RAW_FIR] T : Int, [RAW_FIR] K> T.resolveMe: K - public? [RAW_FIR] get(): K { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] val <[ResolvedTo(RAW_FIR)] T : Int, [ResolvedTo(RAW_FIR)] K> T.resolveMe: K + public? [ResolvedTo(RAW_FIR)] get(): K { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] val <[COMPILER_REQUIRED_ANNOTATIONS] T : Int, [COMPILER_REQUIRED_ANNOTATIONS] K> T.resolveMe: K - public? [COMPILER_REQUIRED_ANNOTATIONS] get(): K { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] val <[ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] T : Int, [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] K> T.resolveMe: K + public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] get(): K { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] val <[COMPANION_GENERATION] T : Int, [COMPANION_GENERATION] K> T.resolveMe: K - public? [COMPANION_GENERATION] get(): K { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] val <[ResolvedTo(COMPANION_GENERATION)] T : Int, [ResolvedTo(COMPANION_GENERATION)] K> T.resolveMe: K + public? [ResolvedTo(COMPANION_GENERATION)] get(): K { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] val <[SUPER_TYPES] T : Int, [SUPER_TYPES] K> T.resolveMe: K - public? [SUPER_TYPES] get(): K { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] val <[ResolvedTo(SUPER_TYPES)] T : Int, [ResolvedTo(SUPER_TYPES)] K> T.resolveMe: K + public? [ResolvedTo(SUPER_TYPES)] get(): K { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public? final? [TYPES] val <[TYPES] T : R|kotlin/Int|, [TYPES] K> R|T|.resolveMe: R|K| - public? [TYPES] get(): R|K| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] val <[ResolvedTo(TYPES)] T : R|kotlin/Int|, [ResolvedTo(TYPES)] K> R|T|.resolveMe: R|K| + public? [ResolvedTo(TYPES)] get(): R|K| { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public final [STATUS] val <[STATUS] T : R|kotlin/Int|, [STATUS] K> R|T|.resolveMe: R|K| - public [STATUS] get(): R|K| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] val <[ResolvedTo(STATUS)] T : R|kotlin/Int|, [ResolvedTo(STATUS)] K> R|T|.resolveMe: R|K| + public [ResolvedTo(STATUS)] get(): R|K| { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] val <[EXPECT_ACTUAL_MATCHING] T : R|kotlin/Int|, [EXPECT_ACTUAL_MATCHING] K> R|T|.resolveMe: R|K| - public [EXPECT_ACTUAL_MATCHING] get(): R|K| { +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] val <[ResolvedTo(EXPECT_ACTUAL_MATCHING)] T : R|kotlin/Int|, [ResolvedTo(EXPECT_ACTUAL_MATCHING)] K> R|T|.resolveMe: R|K| + public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] get(): R|K| { ^ TODO#() } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] val <[ARGUMENTS_OF_ANNOTATIONS] T : R|kotlin/Int|, [ARGUMENTS_OF_ANNOTATIONS] K> R|T|.resolveMe: R|K| - public [ARGUMENTS_OF_ANNOTATIONS] get(): R|K| { +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] val <[ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] T : R|kotlin/Int|, [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] K> R|T|.resolveMe: R|K| + public [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] get(): R|K| { ^ TODO#() } CONTRACTS: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public final [CONTRACTS] val <[CONTRACTS] T : R|kotlin/Int|, [CONTRACTS] K> R|T|.resolveMe: R|K| - public [CONTRACTS] get(): R|K| { +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] val <[ResolvedTo(CONTRACTS)] T : R|kotlin/Int|, [ResolvedTo(CONTRACTS)] K> R|T|.resolveMe: R|K| + public [ResolvedTo(CONTRACTS)] get(): R|K| { ^ TODO#() } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] val <[IMPLICIT_TYPES_BODY_RESOLVE] T : R|kotlin/Int|, [IMPLICIT_TYPES_BODY_RESOLVE] K> R|T|.resolveMe: R|K| - public [IMPLICIT_TYPES_BODY_RESOLVE] get(): R|K| { +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] val <[ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] K> R|T|.resolveMe: R|K| + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] get(): R|K| { ^ TODO#() } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] val <[ANNOTATIONS_ARGUMENTS_MAPPING] T : R|kotlin/Int|, [ANNOTATIONS_ARGUMENTS_MAPPING] K> R|T|.resolveMe: R|K| - public [ANNOTATIONS_ARGUMENTS_MAPPING] get(): R|K| { +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] val <[ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] T : R|kotlin/Int|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] K> R|T|.resolveMe: R|K| + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] get(): R|K| { ^ TODO#() } BODY_RESOLVE: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] val <[BODY_RESOLVE] T : R|kotlin/Int|, [BODY_RESOLVE] K> R|T|.resolveMe: R|K| - public [BODY_RESOLVE] get(): R|K| { +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] val <[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] K> R|T|.resolveMe: R|K| + public [ResolvedTo(BODY_RESOLVE)] get(): R|K| { ^ R|kotlin/TODO|() } FILE RAW TO BODY: -FILE: [IMPORTS] propertyWithTypeParameters.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] val <[BODY_RESOLVE] T : R|kotlin/Int|, [BODY_RESOLVE] K> R|T|.resolveMe: R|K| - public [BODY_RESOLVE] get(): R|K| { +FILE: [ResolvedTo(IMPORTS)] propertyWithTypeParameters.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] val <[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] K> R|T|.resolveMe: R|K| + public [ResolvedTo(BODY_RESOLVE)] get(): R|K| { ^ R|kotlin/TODO|() } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithGetter.txt b/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithGetter.txt index 147aca90cf4..8724881be7b 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithGetter.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithGetter.txt @@ -1,132 +1,132 @@ RAW_FIR: -FILE: [RAW_FIR] propertyWithGetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } +FILE: [ResolvedTo(RAW_FIR)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { receive#(withGetter#) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { receive#(withGetter#) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } CONTRACTS: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { receive#(withGetter#) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { receive#(withGetter#) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { receive#(withGetter#) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val withGetter: Int - public? [RAW_FIR] get(): Int { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val withGetter: Int + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } BODY_RESOLVE: -FILE: [IMPORTS] propertyWithGetter.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/withGetter|) } - public final [CONTRACTS] fun receive([CONTRACTS] value: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun receive([ResolvedTo(CONTRACTS)] value: R|kotlin/Int|): R|kotlin/Unit| { } - public final [CONTRACTS] val withGetter: R|kotlin/Int| - public [CONTRACTS] get(): R|kotlin/Int| { + public final [ResolvedTo(CONTRACTS)] val withGetter: R|kotlin/Int| + public [ResolvedTo(CONTRACTS)] get(): R|kotlin/Int| { ^ IntegerLiteral(42) } FILE RAW TO BODY: -FILE: [IMPORTS] propertyWithGetter.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetter.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/withGetter|) } - public final [BODY_RESOLVE] fun receive([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun receive([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] val withGetter: R|kotlin/Int| - public [BODY_RESOLVE] get(): R|kotlin/Int| { + public final [ResolvedTo(BODY_RESOLVE)] val withGetter: R|kotlin/Int| + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| { ^ Int(42) } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithGetterAndSetter.txt b/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithGetterAndSetter.txt index 3944860b60e..170a17e9627 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithGetterAndSetter.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithGetterAndSetter.txt @@ -1,157 +1,157 @@ RAW_FIR: -FILE: [RAW_FIR] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(RAW_FIR)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { receive#(withGetterAndSetter#) withGetterAndSetter# = IntegerLiteral(123) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { receive#(withGetterAndSetter#) withGetterAndSetter# = IntegerLiteral(123) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } CONTRACTS: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { receive#(withGetterAndSetter#) withGetterAndSetter# = IntegerLiteral(123) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { receive#(withGetterAndSetter#) withGetterAndSetter# = IntegerLiteral(123) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { receive#(withGetterAndSetter#) withGetterAndSetter# = IntegerLiteral(123) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] var withGetterAndSetter: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int { LAZY_BLOCK } - public? [RAW_FIR] set([RAW_FIR] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] var withGetterAndSetter: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int { LAZY_BLOCK } + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: Int): R|kotlin/Unit| { LAZY_BLOCK } BODY_RESOLVE: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/withGetterAndSetter|) R|/withGetterAndSetter| = Int(123) } - public final [CONTRACTS] fun receive([CONTRACTS] value: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun receive([ResolvedTo(CONTRACTS)] value: R|kotlin/Int|): R|kotlin/Unit| { } - public final [CONTRACTS] var withGetterAndSetter: R|kotlin/Int| = IntegerLiteral(42) - public [CONTRACTS] get(): R|kotlin/Int| { + public final [ResolvedTo(CONTRACTS)] var withGetterAndSetter: R|kotlin/Int| = IntegerLiteral(42) + public [ResolvedTo(CONTRACTS)] get(): R|kotlin/Int| { ^ field# } - public [CONTRACTS] set([CONTRACTS] value: R|kotlin/Int|): R|kotlin/Unit| { + public [ResolvedTo(CONTRACTS)] set([ResolvedTo(CONTRACTS)] value: R|kotlin/Int|): R|kotlin/Unit| { field# = value# } FILE RAW TO BODY: -FILE: [IMPORTS] propertyWithGetterAndSetter.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithGetterAndSetter.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/withGetterAndSetter|) R|/withGetterAndSetter| = Int(123) } - public final [BODY_RESOLVE] fun receive([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun receive([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] [IsReferredViaField=true] var withGetterAndSetter: R|kotlin/Int| = Int(42) - public [BODY_RESOLVE] get(): R|kotlin/Int| { + public final [ResolvedTo(BODY_RESOLVE)] [IsReferredViaField=true] var withGetterAndSetter: R|kotlin/Int| = Int(42) + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| { ^ F|/withGetterAndSetter| } - public [BODY_RESOLVE] set([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit| { + public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/Int|): R|kotlin/Unit| { F|/withGetterAndSetter| = R|/value| } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithInitializer.txt b/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithInitializer.txt index 30f671f2179..c4230517705 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithInitializer.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/propertyWithInitializer.txt @@ -1,112 +1,112 @@ RAW_FIR: -FILE: [RAW_FIR] propertyWithInitializer.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int +FILE: [ResolvedTo(RAW_FIR)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int IMPORTS: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int COMPANION_GENERATION: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int SUPER_TYPES: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int TYPES: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int STATUS: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { receive#(property#) } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { receive#(property#) } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int CONTRACTS: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { receive#(property#) } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { receive#(property#) } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { receive#(property#) } - public? final? [RAW_FIR] val property: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int + public? final? [ResolvedTo(RAW_FIR)] val property: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int BODY_RESOLVE: -FILE: [IMPORTS] propertyWithInitializer.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { #(R|/property|) } - public final [CONTRACTS] val property: R|kotlin/Int| = IntegerLiteral(10) - public [CONTRACTS] get(): R|kotlin/Int| + public final [ResolvedTo(CONTRACTS)] val property: R|kotlin/Int| = IntegerLiteral(10) + public [ResolvedTo(CONTRACTS)] get(): R|kotlin/Int| FILE RAW TO BODY: -FILE: [IMPORTS] propertyWithInitializer.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] propertyWithInitializer.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { #(R|/property|) } - public final [BODY_RESOLVE] val property: R|kotlin/Int| = Int(10) - public [BODY_RESOLVE] get(): R|kotlin/Int| + public final [ResolvedTo(BODY_RESOLVE)] val property: R|kotlin/Int| = Int(10) + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/secondaryConstructor.txt b/analysis/low-level-api-fir/testdata/lazyResolve/secondaryConstructor.txt index 53c71e4944d..0a7dbe0070f 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/secondaryConstructor.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/secondaryConstructor.txt @@ -1,159 +1,159 @@ RAW_FIR: -FILE: [RAW_FIR] secondaryConstructor.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } +FILE: [ResolvedTo(RAW_FIR)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } IMPORTS: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } COMPANION_GENERATION: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } SUPER_TYPES: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } TYPES: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } STATUS: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { receive#(A#(IntegerLiteral(42))) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { receive#(A#(IntegerLiteral(42))) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } CONTRACTS: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { receive#(A#(IntegerLiteral(42))) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { receive#(A#(IntegerLiteral(42))) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { receive#(A#(IntegerLiteral(42))) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: A): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor([RAW_FIR] x: Int): R|A| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: A): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor([ResolvedTo(RAW_FIR)] x: Int): R|A| { LAZY_BLOCK } } BODY_RESOLVE: -FILE: [IMPORTS] secondaryConstructor.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/A.A|(Int(42))) } - public final [CONTRACTS] fun receive([CONTRACTS] value: R|A|): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun receive([ResolvedTo(CONTRACTS)] value: R|A|): R|kotlin/Unit| { } - public final [STATUS] class A : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=A] constructor([STATUS] x: R|kotlin/Int|): R|A| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] class A : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor([ResolvedTo(STATUS)] x: R|kotlin/Int|): R|A| { LAZY_BLOCK } } FILE RAW TO BODY: -FILE: [IMPORTS] secondaryConstructor.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] secondaryConstructor.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/A.A|(Int(42))) } - public final [BODY_RESOLVE] fun receive([BODY_RESOLVE] value: R|A|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun receive([ResolvedTo(BODY_RESOLVE)] value: R|A|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] class A : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=A] constructor([BODY_RESOLVE] x: R|kotlin/Int|): R|A| { + public final [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] constructor([ResolvedTo(BODY_RESOLVE)] x: R|kotlin/Int|): R|A| { super() - [BODY_RESOLVE] lval a: R|kotlin/Int| = R|/x| + [ResolvedTo(BODY_RESOLVE)] lval a: R|kotlin/Int| = R|/x| } } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/superTypes.txt b/analysis/low-level-api-fir/testdata/lazyResolve/superTypes.txt index 267f870b579..70c61973cf1 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/superTypes.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/superTypes.txt @@ -1,307 +1,307 @@ RAW_FIR: -FILE: [RAW_FIR] superTypes.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(RAW_FIR)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [RAW_FIR] class resolveMe : A { - public? [RAW_FIR] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public? open [ResolvedTo(RAW_FIR)] class resolveMe : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } IMPORTS: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [RAW_FIR] class resolveMe : A { - public? [RAW_FIR] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public? open [ResolvedTo(RAW_FIR)] class resolveMe : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [COMPILER_REQUIRED_ANNOTATIONS] class resolveMe : A { - public? [COMPILER_REQUIRED_ANNOTATIONS] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public? open [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] class resolveMe : A { + public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } COMPANION_GENERATION: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [COMPANION_GENERATION] class resolveMe : A { - public? [COMPANION_GENERATION] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public? open [ResolvedTo(COMPANION_GENERATION)] class resolveMe : A { + public? [ResolvedTo(COMPANION_GENERATION)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } SUPER_TYPES: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class A : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class A : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [SUPER_TYPES] class resolveMe : R|A| { - public? [SUPER_TYPES] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public? open [ResolvedTo(SUPER_TYPES)] class resolveMe : R|A| { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } TYPES: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public? open [SUPER_TYPES] class A : R|kotlin/Any| { - public? [SUPER_TYPES] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(SUPER_TYPES)] class A : R|kotlin/Any| { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [TYPES] class resolveMe : R|A| { - public? [TYPES] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public? open [ResolvedTo(TYPES)] class resolveMe : R|A| { + public? [ResolvedTo(TYPES)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } STATUS: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public open [TYPES] class A : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(TYPES)] class A : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [STATUS] class resolveMe : R|A| { - public [STATUS] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public open [ResolvedTo(STATUS)] class resolveMe : R|A| { + public [ResolvedTo(STATUS)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public open [TYPES] class A : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(TYPES)] class A : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [EXPECT_ACTUAL_MATCHING] class resolveMe : R|A| { - public [EXPECT_ACTUAL_MATCHING] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public open [ResolvedTo(EXPECT_ACTUAL_MATCHING)] class resolveMe : R|A| { + public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public open [TYPES] class A : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(TYPES)] class A : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [ARGUMENTS_OF_ANNOTATIONS] class resolveMe : R|A| { - public [ARGUMENTS_OF_ANNOTATIONS] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public open [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] class resolveMe : R|A| { + public [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } CONTRACTS: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public open [TYPES] class A : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(TYPES)] class A : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [CONTRACTS] class resolveMe : R|A| { - public [CONTRACTS] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public open [ResolvedTo(CONTRACTS)] class resolveMe : R|A| { + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public open [TYPES] class A : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(TYPES)] class A : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [IMPLICIT_TYPES_BODY_RESOLVE] class resolveMe : R|A| { - public [IMPLICIT_TYPES_BODY_RESOLVE] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public open [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] class resolveMe : R|A| { + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public open [TYPES] class A : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(TYPES)] class A : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [ANNOTATIONS_ARGUMENTS_MAPPING] class resolveMe : R|A| { - public [ANNOTATIONS_ARGUMENTS_MAPPING] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public open [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] class resolveMe : R|A| { + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } BODY_RESOLVE: -FILE: [IMPORTS] superTypes.kt - [RAW_FIR] annotations container - public open [STATUS] class A : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(STATUS)] class A : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : A { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [BODY_RESOLVE] class resolveMe : R|A| { - public [BODY_RESOLVE] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public open [ResolvedTo(BODY_RESOLVE)] class resolveMe : R|A| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } FILE RAW TO BODY: -FILE: [IMPORTS] superTypes.kt - [BODY_RESOLVE] annotations container - public open [BODY_RESOLVE] class A : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=A] constructor(): R|A| { +FILE: [ResolvedTo(IMPORTS)] superTypes.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public open [ResolvedTo(BODY_RESOLVE)] class A : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] constructor(): R|A| { super() } } - public open [BODY_RESOLVE] class B : R|A| { - public [BODY_RESOLVE] [ContainingClassKey=B] constructor(): R|B| { + public open [ResolvedTo(BODY_RESOLVE)] class B : R|A| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=B] constructor(): R|B| { super() } } - public open [BODY_RESOLVE] class resolveMe : R|A| { - public [BODY_RESOLVE] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { + public open [ResolvedTo(BODY_RESOLVE)] class resolveMe : R|A| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/superTypesLoop.txt b/analysis/low-level-api-fir/testdata/lazyResolve/superTypesLoop.txt index 9d8bafaa4c9..6c8386041c3 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/superTypesLoop.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/superTypesLoop.txt @@ -1,391 +1,391 @@ RAW_FIR: -FILE: [RAW_FIR] superTypesLoop.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class resolveMe : C { - public? [RAW_FIR] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(RAW_FIR)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class resolveMe : C { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } - public? open [RAW_FIR] class A : B { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : B { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : C { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : C { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [RAW_FIR] class C : A { - public? [RAW_FIR] [ContainingClassKey=C] constructor(): R|C| { + public? open [ResolvedTo(RAW_FIR)] class C : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } IMPORTS: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public? open [RAW_FIR] class resolveMe : C { - public? [RAW_FIR] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(RAW_FIR)] class resolveMe : C { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } - public? open [RAW_FIR] class A : B { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : B { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : C { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : C { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [RAW_FIR] class C : A { - public? [RAW_FIR] [ContainingClassKey=C] constructor(): R|C| { + public? open [ResolvedTo(RAW_FIR)] class C : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public? open [COMPILER_REQUIRED_ANNOTATIONS] class resolveMe : C { - public? [COMPILER_REQUIRED_ANNOTATIONS] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] class resolveMe : C { + public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } - public? open [RAW_FIR] class A : B { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : B { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : C { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : C { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [RAW_FIR] class C : A { - public? [RAW_FIR] [ContainingClassKey=C] constructor(): R|C| { + public? open [ResolvedTo(RAW_FIR)] class C : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } COMPANION_GENERATION: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public? open [COMPANION_GENERATION] class resolveMe : C { - public? [COMPANION_GENERATION] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(COMPANION_GENERATION)] class resolveMe : C { + public? [ResolvedTo(COMPANION_GENERATION)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } - public? open [RAW_FIR] class A : B { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : B { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : C { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : C { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [RAW_FIR] class C : A { - public? [RAW_FIR] [ContainingClassKey=C] constructor(): R|C| { + public? open [ResolvedTo(RAW_FIR)] class C : A { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } SUPER_TYPES: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public? open [SUPER_TYPES] class resolveMe : R|C| { - public? [SUPER_TYPES] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(SUPER_TYPES)] class resolveMe : R|C| { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } - public? open [RAW_FIR] class A : /B> { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : /B> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : /C> { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : /C> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [RAW_FIR] class C : /A> { - public? [RAW_FIR] [ContainingClassKey=C] constructor(): R|C| { + public? open [ResolvedTo(RAW_FIR)] class C : /A> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } TYPES: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public? open [TYPES] class resolveMe : R|C| { - public? [TYPES] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public? open [ResolvedTo(TYPES)] class resolveMe : R|C| { + public? [ResolvedTo(TYPES)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } - public? open [RAW_FIR] class A : /B> { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : /B> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : /C> { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : /C> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public? open [SUPER_TYPES] class C : /A> { - public? [SUPER_TYPES] [ContainingClassKey=C] constructor(): R|C| { + public? open [ResolvedTo(SUPER_TYPES)] class C : /A> { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } STATUS: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public open [STATUS] class resolveMe : R|C| { - public [STATUS] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(STATUS)] class resolveMe : R|C| { + public [ResolvedTo(STATUS)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { LAZY_super } } - public? open [RAW_FIR] class A : /B> { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : /B> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : /C> { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : /C> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [TYPES] class C : /A> { - public [TYPES] [ContainingClassKey=C] constructor(): R|C| { + public open [ResolvedTo(TYPES)] class C : /A> { + public [ResolvedTo(TYPES)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public open [EXPECT_ACTUAL_MATCHING] class resolveMe : R|C| { - public [EXPECT_ACTUAL_MATCHING] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(EXPECT_ACTUAL_MATCHING)] class resolveMe : R|C| { + public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } - public? open [RAW_FIR] class A : /B> { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : /B> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : /C> { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : /C> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [TYPES] class C : /A> { - public [TYPES] [ContainingClassKey=C] constructor(): R|C| { + public open [ResolvedTo(TYPES)] class C : /A> { + public [ResolvedTo(TYPES)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public open [ARGUMENTS_OF_ANNOTATIONS] class resolveMe : R|C| { - public [ARGUMENTS_OF_ANNOTATIONS] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] class resolveMe : R|C| { + public [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } - public? open [RAW_FIR] class A : /B> { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : /B> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : /C> { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : /C> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [TYPES] class C : /A> { - public [TYPES] [ContainingClassKey=C] constructor(): R|C| { + public open [ResolvedTo(TYPES)] class C : /A> { + public [ResolvedTo(TYPES)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } CONTRACTS: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public open [CONTRACTS] class resolveMe : R|C| { - public [CONTRACTS] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(CONTRACTS)] class resolveMe : R|C| { + public [ResolvedTo(CONTRACTS)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } - public? open [RAW_FIR] class A : /B> { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : /B> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : /C> { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : /C> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [TYPES] class C : /A> { - public [TYPES] [ContainingClassKey=C] constructor(): R|C| { + public open [ResolvedTo(TYPES)] class C : /A> { + public [ResolvedTo(TYPES)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public open [IMPLICIT_TYPES_BODY_RESOLVE] class resolveMe : R|C| { - public [IMPLICIT_TYPES_BODY_RESOLVE] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] class resolveMe : R|C| { + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } - public? open [RAW_FIR] class A : /B> { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : /B> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : /C> { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : /C> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [TYPES] class C : /A> { - public [TYPES] [ContainingClassKey=C] constructor(): R|C| { + public open [ResolvedTo(TYPES)] class C : /A> { + public [ResolvedTo(TYPES)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public open [ANNOTATIONS_ARGUMENTS_MAPPING] class resolveMe : R|C| { - public [ANNOTATIONS_ARGUMENTS_MAPPING] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] class resolveMe : R|C| { + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } - public? open [RAW_FIR] class A : /B> { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : /B> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : /C> { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : /C> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [TYPES] class C : /A> { - public [TYPES] [ContainingClassKey=C] constructor(): R|C| { + public open [ResolvedTo(TYPES)] class C : /A> { + public [ResolvedTo(TYPES)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } BODY_RESOLVE: -FILE: [IMPORTS] superTypesLoop.kt - [RAW_FIR] annotations container - public open [BODY_RESOLVE] class resolveMe : R|C| { - public [BODY_RESOLVE] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(RAW_FIR)] annotations container + public open [ResolvedTo(BODY_RESOLVE)] class resolveMe : R|C| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } - public? open [RAW_FIR] class A : /B> { - public? [RAW_FIR] [ContainingClassKey=A] constructor(): R|A| { + public? open [ResolvedTo(RAW_FIR)] class A : /B> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=A] constructor(): R|A| { LAZY_super } } - public? open [RAW_FIR] class B : /C> { - public? [RAW_FIR] [ContainingClassKey=B] constructor(): R|B| { + public? open [ResolvedTo(RAW_FIR)] class B : /C> { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=B] constructor(): R|B| { LAZY_super } } - public open [STATUS] class C : /A> { - public [STATUS] [ContainingClassKey=C] constructor(): R|C| { + public open [ResolvedTo(STATUS)] class C : /A> { + public [ResolvedTo(STATUS)] [ContainingClassKey=C] constructor(): R|C| { LAZY_super } } FILE RAW TO BODY: -FILE: [IMPORTS] superTypesLoop.kt - [BODY_RESOLVE] annotations container - public open [BODY_RESOLVE] class resolveMe : R|C| { - public [BODY_RESOLVE] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { +FILE: [ResolvedTo(IMPORTS)] superTypesLoop.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public open [ResolvedTo(BODY_RESOLVE)] class resolveMe : R|C| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=resolveMe] constructor(): R|resolveMe| { super() } } - public open [BODY_RESOLVE] class A : /B> { - public [BODY_RESOLVE] [ContainingClassKey=A] constructor(): R|A| { + public open [ResolvedTo(BODY_RESOLVE)] class A : /B> { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=A] constructor(): R|A| { super() } } - public open [BODY_RESOLVE] class B : /C> { - public [BODY_RESOLVE] [ContainingClassKey=B] constructor(): R|B| { + public open [ResolvedTo(BODY_RESOLVE)] class B : /C> { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=B] constructor(): R|B| { super() } } - public open [BODY_RESOLVE] class C : /A> { - public [BODY_RESOLVE] [ContainingClassKey=C] constructor(): R|C| { + public open [ResolvedTo(BODY_RESOLVE)] class C : /A> { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=C] constructor(): R|C| { super() } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctions.txt b/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctions.txt index efd6821cb05..c961dca32d4 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctions.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctions.txt @@ -1,118 +1,118 @@ RAW_FIR: -FILE: [RAW_FIR] topLevelFunctions.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(RAW_FIR)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } CONTRACTS: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } BODY_RESOLVE: -FILE: [IMPORTS] topLevelFunctions.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/functionWithLazyBody|()) } - public final [CONTRACTS] fun receive([CONTRACTS] value: R|kotlin/String|): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun receive([ResolvedTo(CONTRACTS)] value: R|kotlin/String|): R|kotlin/Unit| { } - public final [CONTRACTS] fun functionWithLazyBody(): R|kotlin/String| { + public final [ResolvedTo(CONTRACTS)] fun functionWithLazyBody(): R|kotlin/String| { ^functionWithLazyBody String(42) } FILE RAW TO BODY: -FILE: [IMPORTS] topLevelFunctions.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctions.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/functionWithLazyBody|()) } - public final [BODY_RESOLVE] fun receive([BODY_RESOLVE] value: R|kotlin/String|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun receive([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] fun functionWithLazyBody(): R|kotlin/String| { + public final [ResolvedTo(BODY_RESOLVE)] fun functionWithLazyBody(): R|kotlin/String| { ^functionWithLazyBody String(42) } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctionsWithExpressionBodyAndExplicitType.txt b/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctionsWithExpressionBodyAndExplicitType.txt index 4b30adf23fa..939f3a5e67a 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctionsWithExpressionBodyAndExplicitType.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctionsWithExpressionBodyAndExplicitType.txt @@ -1,118 +1,118 @@ RAW_FIR: -FILE: [RAW_FIR] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(RAW_FIR)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } CONTRACTS: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): String { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): String { LAZY_BLOCK } BODY_RESOLVE: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/functionWithLazyBody|()) } - public final [CONTRACTS] fun receive([CONTRACTS] value: R|kotlin/String|): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun receive([ResolvedTo(CONTRACTS)] value: R|kotlin/String|): R|kotlin/Unit| { } - public final [CONTRACTS] fun functionWithLazyBody(): R|kotlin/String| { + public final [ResolvedTo(CONTRACTS)] fun functionWithLazyBody(): R|kotlin/String| { ^functionWithLazyBody String(42) } FILE RAW TO BODY: -FILE: [IMPORTS] topLevelFunctionsWithExpressionBodyAndExplicitType.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithExpressionBodyAndExplicitType.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/functionWithLazyBody|()) } - public final [BODY_RESOLVE] fun receive([BODY_RESOLVE] value: R|kotlin/String|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun receive([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] fun functionWithLazyBody(): R|kotlin/String| { + public final [ResolvedTo(BODY_RESOLVE)] fun functionWithLazyBody(): R|kotlin/String| { ^functionWithLazyBody String(42) } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctionsWithImplicitType.txt b/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctionsWithImplicitType.txt index 8dc804c7de8..5a8a28b39b7 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctionsWithImplicitType.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/topLevelFunctionsWithImplicitType.txt @@ -1,118 +1,118 @@ RAW_FIR: -FILE: [RAW_FIR] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } +FILE: [ResolvedTo(RAW_FIR)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public final [STATUS] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } CONTRACTS: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| { receive#(functionWithLazyBody#()) } - public? final? [RAW_FIR] fun receive([RAW_FIR] value: String): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] fun functionWithLazyBody(): { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun receive([ResolvedTo(RAW_FIR)] value: String): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun functionWithLazyBody(): { LAZY_BLOCK } BODY_RESOLVE: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/functionWithLazyBody|()) } - public final [CONTRACTS] fun receive([CONTRACTS] value: R|kotlin/String|): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun receive([ResolvedTo(CONTRACTS)] value: R|kotlin/String|): R|kotlin/Unit| { } - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun functionWithLazyBody(): R|kotlin/String| { + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun functionWithLazyBody(): R|kotlin/String| { ^functionWithLazyBody String(42) } FILE RAW TO BODY: -FILE: [IMPORTS] topLevelFunctionsWithImplicitType.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun resolveMe(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsWithImplicitType.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| { R|/receive|(R|/functionWithLazyBody|()) } - public final [BODY_RESOLVE] fun receive([BODY_RESOLVE] value: R|kotlin/String|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun receive([ResolvedTo(BODY_RESOLVE)] value: R|kotlin/String|): R|kotlin/Unit| { } - public final [BODY_RESOLVE] fun functionWithLazyBody(): R|kotlin/String| { + public final [ResolvedTo(BODY_RESOLVE)] fun functionWithLazyBody(): R|kotlin/String| { ^functionWithLazyBody String(42) } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/typeAliases/typeAliasWithTypeParameters.txt b/analysis/low-level-api-fir/testdata/lazyResolve/typeAliases/typeAliasWithTypeParameters.txt index a6380fe84de..51f607e7d5a 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/typeAliases/typeAliasWithTypeParameters.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/typeAliases/typeAliasWithTypeParameters.txt @@ -1,70 +1,70 @@ RAW_FIR: -FILE: [RAW_FIR] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public? final [RAW_FIR] typealias ResolveMe<[RAW_FIR] T : Int, [RAW_FIR] K> = Map +FILE: [ResolvedTo(RAW_FIR)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final [ResolvedTo(RAW_FIR)] typealias ResolveMe<[ResolvedTo(RAW_FIR)] T : Int, [ResolvedTo(RAW_FIR)] K> = Map IMPORTS: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public? final [RAW_FIR] typealias ResolveMe<[RAW_FIR] T : Int, [RAW_FIR] K> = Map +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final [ResolvedTo(RAW_FIR)] typealias ResolveMe<[ResolvedTo(RAW_FIR)] T : Int, [ResolvedTo(RAW_FIR)] K> = Map COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public? final [COMPILER_REQUIRED_ANNOTATIONS] typealias ResolveMe<[COMPILER_REQUIRED_ANNOTATIONS] T : Int, [COMPILER_REQUIRED_ANNOTATIONS] K> = Map +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] typealias ResolveMe<[ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] T : Int, [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] K> = Map COMPANION_GENERATION: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public? final [COMPANION_GENERATION] typealias ResolveMe<[COMPANION_GENERATION] T : Int, [COMPANION_GENERATION] K> = Map +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final [ResolvedTo(COMPANION_GENERATION)] typealias ResolveMe<[ResolvedTo(COMPANION_GENERATION)] T : Int, [ResolvedTo(COMPANION_GENERATION)] K> = Map SUPER_TYPES: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public? final [SUPER_TYPES] typealias ResolveMe<[SUPER_TYPES] T : Int, [SUPER_TYPES] K> = R|kotlin/collections/Map| +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final [ResolvedTo(SUPER_TYPES)] typealias ResolveMe<[ResolvedTo(SUPER_TYPES)] T : Int, [ResolvedTo(SUPER_TYPES)] K> = R|kotlin/collections/Map| TYPES: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public? final [TYPES] typealias ResolveMe<[TYPES] T : R|kotlin/Int|, [TYPES] K> = R|kotlin/collections/Map| +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final [ResolvedTo(TYPES)] typealias ResolveMe<[ResolvedTo(TYPES)] T : R|kotlin/Int|, [ResolvedTo(TYPES)] K> = R|kotlin/collections/Map| STATUS: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public final [STATUS] typealias ResolveMe<[STATUS] T : R|kotlin/Int|, [STATUS] K> = R|kotlin/collections/Map| +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] typealias ResolveMe<[ResolvedTo(STATUS)] T : R|kotlin/Int|, [ResolvedTo(STATUS)] K> = R|kotlin/collections/Map| EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] typealias ResolveMe<[EXPECT_ACTUAL_MATCHING] T : R|kotlin/Int|, [EXPECT_ACTUAL_MATCHING] K> = R|kotlin/collections/Map| +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] typealias ResolveMe<[ResolvedTo(EXPECT_ACTUAL_MATCHING)] T : R|kotlin/Int|, [ResolvedTo(EXPECT_ACTUAL_MATCHING)] K> = R|kotlin/collections/Map| ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] typealias ResolveMe<[ARGUMENTS_OF_ANNOTATIONS] T : R|kotlin/Int|, [ARGUMENTS_OF_ANNOTATIONS] K> = R|kotlin/collections/Map| +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] typealias ResolveMe<[ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] T : R|kotlin/Int|, [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] K> = R|kotlin/collections/Map| CONTRACTS: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public final [CONTRACTS] typealias ResolveMe<[CONTRACTS] T : R|kotlin/Int|, [CONTRACTS] K> = R|kotlin/collections/Map| +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] typealias ResolveMe<[ResolvedTo(CONTRACTS)] T : R|kotlin/Int|, [ResolvedTo(CONTRACTS)] K> = R|kotlin/collections/Map| IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] typealias ResolveMe<[IMPLICIT_TYPES_BODY_RESOLVE] T : R|kotlin/Int|, [IMPLICIT_TYPES_BODY_RESOLVE] K> = R|kotlin/collections/Map| +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] typealias ResolveMe<[ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] K> = R|kotlin/collections/Map| ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] typealias ResolveMe<[ANNOTATIONS_ARGUMENTS_MAPPING] T : R|kotlin/Int|, [ANNOTATIONS_ARGUMENTS_MAPPING] K> = R|kotlin/collections/Map| +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] typealias ResolveMe<[ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] T : R|kotlin/Int|, [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] K> = R|kotlin/collections/Map| BODY_RESOLVE: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] typealias ResolveMe<[BODY_RESOLVE] T : R|kotlin/Int|, [BODY_RESOLVE] K> = R|kotlin/collections/Map| +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] typealias ResolveMe<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] K> = R|kotlin/collections/Map| FILE RAW TO BODY: -FILE: [IMPORTS] typeAliasWithTypeParameters.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] typealias ResolveMe<[BODY_RESOLVE] T : R|kotlin/Int|, [BODY_RESOLVE] K> = R|kotlin/collections/Map| +FILE: [ResolvedTo(IMPORTS)] typeAliasWithTypeParameters.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] typealias ResolveMe<[ResolvedTo(BODY_RESOLVE)] T : R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] K> = R|kotlin/collections/Map| diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterBounds.txt b/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterBounds.txt index 86203ddf853..44119f829ac 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterBounds.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterBounds.txt @@ -1,158 +1,158 @@ RAW_FIR: -FILE: [RAW_FIR] typeParameterBounds.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe([RAW_FIR] foo: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { +FILE: [ResolvedTo(RAW_FIR)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe([ResolvedTo(RAW_FIR)] foo: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun resolveMe([RAW_FIR] foo: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun resolveMe([ResolvedTo(RAW_FIR)] foo: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun resolveMe([COMPILER_REQUIRED_ANNOTATIONS] foo: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe([ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] foo: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun resolveMe([COMPANION_GENERATION] foo: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe([ResolvedTo(COMPANION_GENERATION)] foo: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun resolveMe([SUPER_TYPES] foo: Foo): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe([ResolvedTo(SUPER_TYPES)] foo: Foo): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun resolveMe([TYPES] foo: R|Foo|): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun resolveMe([ResolvedTo(TYPES)] foo: R|Foo|): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public final [STATUS] fun resolveMe([STATUS] foo: R|Foo|): R|kotlin/Unit| { LAZY_BLOCK } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun resolveMe([ResolvedTo(STATUS)] foo: R|Foo|): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun resolveMe([EXPECT_ACTUAL_MATCHING] foo: R|Foo|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe([ResolvedTo(EXPECT_ACTUAL_MATCHING)] foo: R|Foo|): R|kotlin/Unit| { foo#.util#() } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun resolveMe([ARGUMENTS_OF_ANNOTATIONS] foo: R|Foo|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe([ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] foo: R|Foo|): R|kotlin/Unit| { foo#.util#() } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } CONTRACTS: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun resolveMe([CONTRACTS] foo: R|Foo|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun resolveMe([ResolvedTo(CONTRACTS)] foo: R|Foo|): R|kotlin/Unit| { foo#.util#() } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun resolveMe([IMPLICIT_TYPES_BODY_RESOLVE] foo: R|Foo|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] foo: R|Foo|): R|kotlin/Unit| { foo#.util#() } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun resolveMe([ANNOTATIONS_ARGUMENTS_MAPPING] foo: R|Foo|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] foo: R|Foo|): R|kotlin/Unit| { foo#.util#() } - public? final? [RAW_FIR] interface Foo : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Foo : R|kotlin/Any| { } - public? final? [RAW_FIR] interface Bar<[RAW_FIR] T : Foo> : R|kotlin/Any| { + public? final? [ResolvedTo(RAW_FIR)] interface Bar<[ResolvedTo(RAW_FIR)] T : Foo> : R|kotlin/Any| { } - public? final? [RAW_FIR] fun <[RAW_FIR] F : Foo, [RAW_FIR] B : Bar> F.util(): B { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] F : Foo, [ResolvedTo(RAW_FIR)] B : Bar> F.util(): B { LAZY_BLOCK } BODY_RESOLVE: -FILE: [IMPORTS] typeParameterBounds.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun resolveMe([BODY_RESOLVE] foo: R|Foo|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe([ResolvedTo(BODY_RESOLVE)] foo: R|Foo|): R|kotlin/Unit| { R|/foo|.R|/util||>() } - public abstract [STATUS] interface Foo : R|kotlin/Any| { + public abstract [ResolvedTo(STATUS)] interface Foo : R|kotlin/Any| { } - public? final? [TYPES] interface Bar<[TYPES] T : R|Foo|> : R|kotlin/Any| { + public? final? [ResolvedTo(TYPES)] interface Bar<[ResolvedTo(TYPES)] T : R|Foo|> : R|kotlin/Any| { } - public final [CONTRACTS] fun <[CONTRACTS] F : R|Foo|, [CONTRACTS] B : R|Bar|> R|F|.util(): R|B| { + public final [ResolvedTo(CONTRACTS)] fun <[ResolvedTo(CONTRACTS)] F : R|Foo|, [ResolvedTo(CONTRACTS)] B : R|Bar|> R|F|.util(): R|B| { ^util Null(null)!! } FILE RAW TO BODY: -FILE: [IMPORTS] typeParameterBounds.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun resolveMe([BODY_RESOLVE] foo: R|Foo|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterBounds.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe([ResolvedTo(BODY_RESOLVE)] foo: R|Foo|): R|kotlin/Unit| { R|/foo|.R|/util||>() } - public abstract [BODY_RESOLVE] interface Foo : R|kotlin/Any| { + public abstract [ResolvedTo(BODY_RESOLVE)] interface Foo : R|kotlin/Any| { } - public abstract [BODY_RESOLVE] interface Bar<[BODY_RESOLVE] T : R|Foo|> : R|kotlin/Any| { + public abstract [ResolvedTo(BODY_RESOLVE)] interface Bar<[ResolvedTo(BODY_RESOLVE)] T : R|Foo|> : R|kotlin/Any| { } - public final [BODY_RESOLVE] fun <[BODY_RESOLVE] F : R|Foo|, [BODY_RESOLVE] B : R|Bar|> R|F|.util(): R|B| { + public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] F : R|Foo|, [ResolvedTo(BODY_RESOLVE)] B : R|Bar|> R|F|.util(): R|B| { ^util Null(null)!! } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfNonLocalFunction.txt b/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfNonLocalFunction.txt index f367ae95aa8..4d692e95b10 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfNonLocalFunction.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfNonLocalFunction.txt @@ -1,175 +1,175 @@ RAW_FIR: -FILE: [RAW_FIR] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class X : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(RAW_FIR)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [RAW_FIR] fun <[RAW_FIR] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } } IMPORTS: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class X : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [RAW_FIR] fun <[RAW_FIR] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class X : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun <[COMPILER_REQUIRED_ANNOTATIONS] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun <[ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } } COMPANION_GENERATION: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class X : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [COMPANION_GENERATION] fun <[COMPANION_GENERATION] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(COMPANION_GENERATION)] fun <[ResolvedTo(COMPANION_GENERATION)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } } SUPER_TYPES: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] class X : R|kotlin/Any| { - public? [RAW_FIR] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] class X : R|kotlin/Any| { + public? [ResolvedTo(RAW_FIR)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [SUPER_TYPES] fun <[SUPER_TYPES] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(SUPER_TYPES)] fun <[ResolvedTo(SUPER_TYPES)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } } TYPES: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] class X : R|kotlin/Any| { - public? [SUPER_TYPES] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] class X : R|kotlin/Any| { + public? [ResolvedTo(SUPER_TYPES)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public? final? [TYPES] fun <[TYPES] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } + public? final? [ResolvedTo(TYPES)] fun <[ResolvedTo(TYPES)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } } STATUS: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public final [SUPER_TYPES] class X : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(SUPER_TYPES)] class X : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [STATUS] fun <[STATUS] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } + public final [ResolvedTo(STATUS)] fun <[ResolvedTo(STATUS)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public final [SUPER_TYPES] class X : R|kotlin/Any| { - public [TYPES] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(SUPER_TYPES)] class X : R|kotlin/Any| { + public [ResolvedTo(TYPES)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [EXPECT_ACTUAL_MATCHING] fun <[EXPECT_ACTUAL_MATCHING] resolveMe> ddd(): R|kotlin/Unit| { + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun <[ResolvedTo(EXPECT_ACTUAL_MATCHING)] resolveMe> ddd(): R|kotlin/Unit| { } } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public final [STATUS] class X : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [ARGUMENTS_OF_ANNOTATIONS] fun <[ARGUMENTS_OF_ANNOTATIONS] resolveMe> ddd(): R|kotlin/Unit| { + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun <[ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] resolveMe> ddd(): R|kotlin/Unit| { } } CONTRACTS: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public final [STATUS] class X : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [CONTRACTS] fun <[CONTRACTS] resolveMe> ddd(): R|kotlin/Unit| { + public final [ResolvedTo(CONTRACTS)] fun <[ResolvedTo(CONTRACTS)] resolveMe> ddd(): R|kotlin/Unit| { } } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public final [STATUS] class X : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun <[IMPLICIT_TYPES_BODY_RESOLVE] resolveMe> ddd(): R|kotlin/Unit| { + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun <[ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] resolveMe> ddd(): R|kotlin/Unit| { } } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public final [STATUS] class X : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun <[ANNOTATIONS_ARGUMENTS_MAPPING] resolveMe> ddd(): R|kotlin/Unit| { + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun <[ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] resolveMe> ddd(): R|kotlin/Unit| { } } BODY_RESOLVE: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [RAW_FIR] annotations container - public final [STATUS] class X : R|kotlin/Any| { - public [STATUS] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] class X : R|kotlin/Any| { + public [ResolvedTo(STATUS)] [ContainingClassKey=X] constructor(): R|X| { LAZY_super } - public final [BODY_RESOLVE] fun <[BODY_RESOLVE] resolveMe> ddd(): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] resolveMe> ddd(): R|kotlin/Unit| { } } FILE RAW TO BODY: -FILE: [IMPORTS] typeParameterOfNonLocalFunction.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] class X : R|kotlin/Any| { - public [BODY_RESOLVE] [ContainingClassKey=X] constructor(): R|X| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfNonLocalFunction.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] class X : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=X] constructor(): R|X| { super() } - public final [BODY_RESOLVE] fun <[BODY_RESOLVE] resolveMe> ddd(): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] resolveMe> ddd(): R|kotlin/Unit| { } } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfTopFunction.txt b/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfTopFunction.txt index ed7f66ae93f..412f55f0401 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfTopFunction.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfTopFunction.txt @@ -1,77 +1,77 @@ RAW_FIR: -FILE: [RAW_FIR] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun <[RAW_FIR] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(RAW_FIR)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] fun <[RAW_FIR] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] fun <[ResolvedTo(RAW_FIR)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] fun <[COMPILER_REQUIRED_ANNOTATIONS] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun <[ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] fun <[COMPANION_GENERATION] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] fun <[ResolvedTo(COMPANION_GENERATION)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] fun <[SUPER_TYPES] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] fun <[ResolvedTo(SUPER_TYPES)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public? final? [TYPES] fun <[TYPES] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] fun <[ResolvedTo(TYPES)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public final [STATUS] fun <[STATUS] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] fun <[ResolvedTo(STATUS)] resolveMe> ddd(): R|kotlin/Unit| { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] fun <[EXPECT_ACTUAL_MATCHING] resolveMe> ddd(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun <[ResolvedTo(EXPECT_ACTUAL_MATCHING)] resolveMe> ddd(): R|kotlin/Unit| { } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] fun <[ARGUMENTS_OF_ANNOTATIONS] resolveMe> ddd(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun <[ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] resolveMe> ddd(): R|kotlin/Unit| { } CONTRACTS: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public final [CONTRACTS] fun <[CONTRACTS] resolveMe> ddd(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] fun <[ResolvedTo(CONTRACTS)] resolveMe> ddd(): R|kotlin/Unit| { } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] fun <[IMPLICIT_TYPES_BODY_RESOLVE] resolveMe> ddd(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun <[ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] resolveMe> ddd(): R|kotlin/Unit| { } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] fun <[ANNOTATIONS_ARGUMENTS_MAPPING] resolveMe> ddd(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun <[ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] resolveMe> ddd(): R|kotlin/Unit| { } BODY_RESOLVE: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] fun <[BODY_RESOLVE] resolveMe> ddd(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] resolveMe> ddd(): R|kotlin/Unit| { } FILE RAW TO BODY: -FILE: [IMPORTS] typeParameterOfTopFunction.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] fun <[BODY_RESOLVE] resolveMe> ddd(): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopFunction.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] resolveMe> ddd(): R|kotlin/Unit| { } diff --git a/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfTopSetter.txt b/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfTopSetter.txt index f9e4d60a8c6..881737dde70 100644 --- a/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfTopSetter.txt +++ b/analysis/low-level-api-fir/testdata/lazyResolve/typeParameterOfTopSetter.txt @@ -1,112 +1,112 @@ RAW_FIR: -FILE: [RAW_FIR] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] var x: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int - public? [RAW_FIR] set([RAW_FIR] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(RAW_FIR)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] var x: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } IMPORTS: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public? final? [RAW_FIR] var x: Int = LAZY_EXPRESSION - public? [RAW_FIR] get(): Int - public? [RAW_FIR] set([RAW_FIR] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(RAW_FIR)] var x: Int = LAZY_EXPRESSION + public? [ResolvedTo(RAW_FIR)] get(): Int + public? [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } COMPILER_REQUIRED_ANNOTATIONS: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public? final? [COMPILER_REQUIRED_ANNOTATIONS] var x: Int = LAZY_EXPRESSION - public? [COMPILER_REQUIRED_ANNOTATIONS] get(): Int - public? [COMPILER_REQUIRED_ANNOTATIONS] set([COMPILER_REQUIRED_ANNOTATIONS] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] var x: Int = LAZY_EXPRESSION + public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] get(): Int + public? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] set([ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } COMPANION_GENERATION: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public? final? [COMPANION_GENERATION] var x: Int = LAZY_EXPRESSION - public? [COMPANION_GENERATION] get(): Int - public? [COMPANION_GENERATION] set([COMPANION_GENERATION] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(COMPANION_GENERATION)] var x: Int = LAZY_EXPRESSION + public? [ResolvedTo(COMPANION_GENERATION)] get(): Int + public? [ResolvedTo(COMPANION_GENERATION)] set([ResolvedTo(COMPANION_GENERATION)] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } SUPER_TYPES: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public? final? [SUPER_TYPES] var x: Int = LAZY_EXPRESSION - public? [SUPER_TYPES] get(): Int - public? [SUPER_TYPES] set([SUPER_TYPES] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(SUPER_TYPES)] var x: Int = LAZY_EXPRESSION + public? [ResolvedTo(SUPER_TYPES)] get(): Int + public? [ResolvedTo(SUPER_TYPES)] set([ResolvedTo(SUPER_TYPES)] resolveMe: Int): R|kotlin/Unit| { LAZY_BLOCK } TYPES: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public? final? [TYPES] var x: R|kotlin/Int| = LAZY_EXPRESSION - public? [TYPES] get(): R|kotlin/Int| - public? [TYPES] set([TYPES] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public? final? [ResolvedTo(TYPES)] var x: R|kotlin/Int| = LAZY_EXPRESSION + public? [ResolvedTo(TYPES)] get(): R|kotlin/Int| + public? [ResolvedTo(TYPES)] set([ResolvedTo(TYPES)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } STATUS: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public final [STATUS] var x: R|kotlin/Int| = LAZY_EXPRESSION - public [STATUS] get(): R|kotlin/Int| - public [STATUS] set([STATUS] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(STATUS)] var x: R|kotlin/Int| = LAZY_EXPRESSION + public [ResolvedTo(STATUS)] get(): R|kotlin/Int| + public [ResolvedTo(STATUS)] set([ResolvedTo(STATUS)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK } EXPECT_ACTUAL_MATCHING: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public final [EXPECT_ACTUAL_MATCHING] var x: R|kotlin/Int| = IntegerLiteral(2) - public [EXPECT_ACTUAL_MATCHING] get(): R|kotlin/Int| - public [EXPECT_ACTUAL_MATCHING] set([EXPECT_ACTUAL_MATCHING] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] var x: R|kotlin/Int| = IntegerLiteral(2) + public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] get(): R|kotlin/Int| + public [ResolvedTo(EXPECT_ACTUAL_MATCHING)] set([ResolvedTo(EXPECT_ACTUAL_MATCHING)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Unit# } ARGUMENTS_OF_ANNOTATIONS: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public final [ARGUMENTS_OF_ANNOTATIONS] var x: R|kotlin/Int| = IntegerLiteral(2) - public [ARGUMENTS_OF_ANNOTATIONS] get(): R|kotlin/Int| - public [ARGUMENTS_OF_ANNOTATIONS] set([ARGUMENTS_OF_ANNOTATIONS] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] var x: R|kotlin/Int| = IntegerLiteral(2) + public [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] get(): R|kotlin/Int| + public [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] set([ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Unit# } CONTRACTS: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public final [CONTRACTS] var x: R|kotlin/Int| = IntegerLiteral(2) - public [CONTRACTS] get(): R|kotlin/Int| - public [CONTRACTS] set([CONTRACTS] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(CONTRACTS)] var x: R|kotlin/Int| = IntegerLiteral(2) + public [ResolvedTo(CONTRACTS)] get(): R|kotlin/Int| + public [ResolvedTo(CONTRACTS)] set([ResolvedTo(CONTRACTS)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Unit# } IMPLICIT_TYPES_BODY_RESOLVE: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public final [IMPLICIT_TYPES_BODY_RESOLVE] var x: R|kotlin/Int| = IntegerLiteral(2) - public [IMPLICIT_TYPES_BODY_RESOLVE] get(): R|kotlin/Int| - public [IMPLICIT_TYPES_BODY_RESOLVE] set([IMPLICIT_TYPES_BODY_RESOLVE] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] var x: R|kotlin/Int| = IntegerLiteral(2) + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] get(): R|kotlin/Int| + public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] set([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Unit# } ANNOTATIONS_ARGUMENTS_MAPPING: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public final [ANNOTATIONS_ARGUMENTS_MAPPING] var x: R|kotlin/Int| = IntegerLiteral(2) - public [ANNOTATIONS_ARGUMENTS_MAPPING] get(): R|kotlin/Int| - public [ANNOTATIONS_ARGUMENTS_MAPPING] set([ANNOTATIONS_ARGUMENTS_MAPPING] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] var x: R|kotlin/Int| = IntegerLiteral(2) + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] get(): R|kotlin/Int| + public [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] set([ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Unit# } BODY_RESOLVE: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [RAW_FIR] annotations container - public final [BODY_RESOLVE] var x: R|kotlin/Int| = Int(2) - public [BODY_RESOLVE] get(): R|kotlin/Int| - public [BODY_RESOLVE] set([BODY_RESOLVE] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(RAW_FIR)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] var x: R|kotlin/Int| = Int(2) + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| + public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Q|kotlin/Unit| } FILE RAW TO BODY: -FILE: [IMPORTS] typeParameterOfTopSetter.kt - [BODY_RESOLVE] annotations container - public final [BODY_RESOLVE] var x: R|kotlin/Int| = Int(2) - public [BODY_RESOLVE] get(): R|kotlin/Int| - public [BODY_RESOLVE] set([BODY_RESOLVE] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { +FILE: [ResolvedTo(IMPORTS)] typeParameterOfTopSetter.kt + [ResolvedTo(BODY_RESOLVE)] annotations container + public final [ResolvedTo(BODY_RESOLVE)] var x: R|kotlin/Int| = Int(2) + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Int| + public [ResolvedTo(BODY_RESOLVE)] set([ResolvedTo(BODY_RESOLVE)] resolveMe: R|kotlin/Int|): R|kotlin/Unit| { ^ Q|kotlin/Unit| } diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/classInClass.txt b/analysis/low-level-api-fir/testdata/onAirResolve/classInClass.txt index 5d809a94bf5..efe03b8cbf7 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/classInClass.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/classInClass.txt @@ -1,9 +1,9 @@ -public final inner [BODY_RESOLVE] class ONAIR<[STATUS] T> : R|X.BASE| { - public [BODY_RESOLVE] X.constructor(): R|X.ONAIR| { +public final inner [ResolvedTo(BODY_RESOLVE)] class ONAIR<[ResolvedTo(STATUS)] T> : R|X.BASE| { + public [ResolvedTo(BODY_RESOLVE)] X.constructor(): R|X.ONAIR| { super() } - public final [BODY_RESOLVE] fun x(): R|X.Y| { + public final [ResolvedTo(BODY_RESOLVE)] fun x(): R|X.Y| { ^x R|SubstitutionOverride|() } diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/enumValueMember.txt b/analysis/low-level-api-fir/testdata/onAirResolve/enumValueMember.txt index ff0cf4ba00c..f5d286c0cff 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/enumValueMember.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/enumValueMember.txt @@ -1,3 +1,3 @@ -public final [BODY_RESOLVE] fun box(): R|kotlin/Int| { +public final [ResolvedTo(BODY_RESOLVE)] fun box(): R|kotlin/Int| { ^box Int(0) } diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/identifierInContext.txt b/analysis/low-level-api-fir/testdata/onAirResolve/identifierInContext.txt index 9b9b2ec5cd0..27cf9840a08 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/identifierInContext.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/identifierInContext.txt @@ -1 +1 @@ -[BODY_RESOLVE] lval y: R|kotlin/Int| = R|/f| +[ResolvedTo(BODY_RESOLVE)] lval y: R|kotlin/Int| = R|/f| \ No newline at end of file diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/inParameter.txt b/analysis/low-level-api-fir/testdata/onAirResolve/inParameter.txt index 7df5d13920f..2de0d820308 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/inParameter.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/inParameter.txt @@ -1 +1 @@ -[BODY_RESOLVE] y: R|X.Y| +[ResolvedTo(BODY_RESOLVE)] y: R|X.Y| \ No newline at end of file diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/incompleteIdentifier.txt b/analysis/low-level-api-fir/testdata/onAirResolve/incompleteIdentifier.txt index e477b0c5737..b14b37fe6c7 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/incompleteIdentifier.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/incompleteIdentifier.txt @@ -1,2 +1,2 @@ -public final [BODY_RESOLVE] val b: R|A.B| - public [BODY_RESOLVE] get(): R|A.B| +public final [ResolvedTo(BODY_RESOLVE)] val b: R|A.B| + public [ResolvedTo(BODY_RESOLVE)] get(): R|A.B| diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/localClass.txt b/analysis/low-level-api-fir/testdata/onAirResolve/localClass.txt index 76a7f0a98f9..1ccf0e029f2 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/localClass.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/localClass.txt @@ -1,9 +1,9 @@ -public final [BODY_RESOLVE] class E : R|kotlin/Any| { - public [BODY_RESOLVE] constructor(): R|E| { +public final [ResolvedTo(BODY_RESOLVE)] class E : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|E| { super() } - public final [BODY_RESOLVE] fun e(): R|kotlin/Int| { + public final [ResolvedTo(BODY_RESOLVE)] fun e(): R|kotlin/Int| { ^e R|/x| } diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/localFunction.txt b/analysis/low-level-api-fir/testdata/onAirResolve/localFunction.txt index fa988af35ba..e5f4146802b 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/localFunction.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/localFunction.txt @@ -1,3 +1,3 @@ -local final [BODY_RESOLVE] fun x(): R|kotlin/Int| { +local final [ResolvedTo(BODY_RESOLVE)] fun x(): R|kotlin/Int| { ^x R|/x| } diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/loopConstruction.txt b/analysis/low-level-api-fir/testdata/onAirResolve/loopConstruction.txt index c27b13815f2..6e72bab6112 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/loopConstruction.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/loopConstruction.txt @@ -1,9 +1,9 @@ while(CMP(<, R|/x|.R|kotlin/Int.compareTo|(Int(2)))) { { - [BODY_RESOLVE] lval : R|kotlin/Int| = R|/x| + [ResolvedTo(BODY_RESOLVE)] lval : R|kotlin/Int| = R|/x| R|/x| = R|/|.R|kotlin/Int.dec|() R|/| } - [BODY_RESOLVE] lval z: R|kotlin/Int| = R|/y| + [ResolvedTo(BODY_RESOLVE)] lval z: R|kotlin/Int| = R|/y| } diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/memberInClass.txt b/analysis/low-level-api-fir/testdata/onAirResolve/memberInClass.txt index 6bf89751dba..632f636e72f 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/memberInClass.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/memberInClass.txt @@ -1,3 +1,3 @@ -public final [BODY_RESOLVE] fun <[BODY_RESOLVE] K> niewbe([BODY_RESOLVE] a: R|kotlin/Char|, [BODY_RESOLVE] b: R|kotlin/Double|): R|kotlin/String| { +public final [ResolvedTo(BODY_RESOLVE)] fun <[ResolvedTo(BODY_RESOLVE)] K> niewbe([ResolvedTo(BODY_RESOLVE)] a: R|kotlin/Char|, [ResolvedTo(BODY_RESOLVE)] b: R|kotlin/Double|): R|kotlin/String| { ^niewbe String(Trololo) } diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/memberPropertyInClass.txt b/analysis/low-level-api-fir/testdata/onAirResolve/memberPropertyInClass.txt index 8bf0c2eb5f3..7b6879ade94 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/memberPropertyInClass.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/memberPropertyInClass.txt @@ -1,2 +1,2 @@ -public final [BODY_RESOLVE] val niewbe: R|kotlin/String| = String(Hello) - public [BODY_RESOLVE] get(): R|kotlin/String| +public final [ResolvedTo(BODY_RESOLVE)] val niewbe: R|kotlin/String| = String(Hello) + public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/String| diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/memberWithOverride.txt b/analysis/low-level-api-fir/testdata/onAirResolve/memberWithOverride.txt index 9333485119c..3bdf95710a6 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/memberWithOverride.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/memberWithOverride.txt @@ -1,3 +1,3 @@ -public open override [BODY_RESOLVE] fun baseMember(): R|kotlin/Int| { +public open override [ResolvedTo(BODY_RESOLVE)] fun baseMember(): R|kotlin/Int| { ^baseMember Int(3) } diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/onAirTypesResolve.txt b/analysis/low-level-api-fir/testdata/onAirResolve/onAirTypesResolve.txt index a8332ffc3de..fdebb94c6c4 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/onAirTypesResolve.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/onAirTypesResolve.txt @@ -1,23 +1,23 @@ -public final [BODY_RESOLVE] class Y : R|kotlin/Any| { - public [BODY_RESOLVE] constructor(): R|X.Y| { +public final [ResolvedTo(BODY_RESOLVE)] class Y : R|kotlin/Any| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|X.Y| { super() } - public open [BODY_RESOLVE] class BASE : R|X| { - public [BODY_RESOLVE] constructor(): R|X.Y.BASE| { + public open [ResolvedTo(BODY_RESOLVE)] class BASE : R|X| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|X.Y.BASE| { super() } } - public final [BODY_RESOLVE] class DERIVED : R|X.Y.BASE| { - public [BODY_RESOLVE] constructor(): R|X.Y.DERIVED| { + public final [ResolvedTo(BODY_RESOLVE)] class DERIVED : R|X.Y.BASE| { + public [ResolvedTo(BODY_RESOLVE)] constructor(): R|X.Y.DERIVED| { super() } } - public final [BODY_RESOLVE] fun withType([BODY_RESOLVE] arg: R|X.Y.BASE|): R|kotlin/Unit| { + public final [ResolvedTo(BODY_RESOLVE)] fun withType([ResolvedTo(BODY_RESOLVE)] arg: R|X.Y.BASE|): R|kotlin/Unit| { } } diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/replacementInHeader.txt b/analysis/low-level-api-fir/testdata/onAirResolve/replacementInHeader.txt index 1158513b350..f337f6aa2a1 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/replacementInHeader.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/replacementInHeader.txt @@ -1 +1 @@ -[BODY_RESOLVE] b: R|T| +[ResolvedTo(BODY_RESOLVE)] b: R|T| \ No newline at end of file diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/replacementInsidePropertyBody.txt b/analysis/low-level-api-fir/testdata/onAirResolve/replacementInsidePropertyBody.txt index 2a4dec13b46..2796f9452c3 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/replacementInsidePropertyBody.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/replacementInsidePropertyBody.txt @@ -1 +1 @@ -[BODY_RESOLVE] lval z: R|kotlin/String| = R|/qqq| \ No newline at end of file +[ResolvedTo(BODY_RESOLVE)] lval z: R|kotlin/String| = R|/qqq| \ No newline at end of file diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/replacementInsidePropertyBody2.txt b/analysis/low-level-api-fir/testdata/onAirResolve/replacementInsidePropertyBody2.txt index 5490194e7bf..96873aa20c2 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/replacementInsidePropertyBody2.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/replacementInsidePropertyBody2.txt @@ -1 +1 @@ -[BODY_RESOLVE] lval inSetter: R|kotlin/Int| = R|/value| \ No newline at end of file +[ResolvedTo(BODY_RESOLVE)] lval inSetter: R|kotlin/Int| = R|/value| \ No newline at end of file diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/topLevelFunction.txt b/analysis/low-level-api-fir/testdata/onAirResolve/topLevelFunction.txt index d1c859b8802..1f1efdd661c 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/topLevelFunction.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/topLevelFunction.txt @@ -1,5 +1,5 @@ -public final [BODY_RESOLVE] fun onAir(): R|kotlin/Int| { - local final [BODY_RESOLVE] fun yyy(): R|kotlin/String| { +public final [ResolvedTo(BODY_RESOLVE)] fun onAir(): R|kotlin/Int| { + local final [ResolvedTo(BODY_RESOLVE)] fun yyy(): R|kotlin/String| { ^yyy String(hello) } diff --git a/analysis/low-level-api-fir/testdata/onAirResolve/typeAlias.txt b/analysis/low-level-api-fir/testdata/onAirResolve/typeAlias.txt index 471926e0e25..643dc30e9d4 100644 --- a/analysis/low-level-api-fir/testdata/onAirResolve/typeAlias.txt +++ b/analysis/low-level-api-fir/testdata/onAirResolve/typeAlias.txt @@ -1 +1 @@ -public final [BODY_RESOLVE] typealias B = R|kotlin/collections/Set| +public final [ResolvedTo(BODY_RESOLVE)] typealias B = R|kotlin/collections/Set| diff --git a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirOuterClassArgumentsRequiredChecker.kt b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirOuterClassArgumentsRequiredChecker.kt index 125f6bb1d7f..068a299916c 100644 --- a/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirOuterClassArgumentsRequiredChecker.kt +++ b/compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirOuterClassArgumentsRequiredChecker.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -11,6 +11,7 @@ import org.jetbrains.kotlin.fir.analysis.checkers.context.CheckerContext import org.jetbrains.kotlin.fir.analysis.checkers.extractArgumentsTypeRefAndSource import org.jetbrains.kotlin.fir.analysis.diagnostics.FirErrors import org.jetbrains.kotlin.fir.declarations.FirRegularClass +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.utils.classId import org.jetbrains.kotlin.fir.render import org.jetbrains.kotlin.fir.resolve.isValidTypeParameterFromOuterDeclaration @@ -20,9 +21,10 @@ import org.jetbrains.kotlin.fir.symbols.impl.FirRegularClassSymbol import org.jetbrains.kotlin.fir.types.* object FirOuterClassArgumentsRequiredChecker : FirRegularClassChecker() { + @OptIn(ResolveStateAccess::class) override fun check(declaration: FirRegularClass, context: CheckerContext, reporter: DiagnosticReporter) { // Checking the rest super types that weren't resolved on the first OUTER_CLASS_ARGUMENTS_REQUIRED check in FirTypeResolver - val oldResolvePhase = declaration.resolvePhase + val oldResolveState = declaration.resolveState val oldList = declaration.superTypeRefs.toList() try { @@ -30,15 +32,15 @@ object FirOuterClassArgumentsRequiredChecker : FirRegularClassChecker() { checkOuterClassArgumentsRequired(superTypeRef, declaration, context, reporter) } } catch (e: ConcurrentModificationException) { - val newResolvePhase = declaration.resolvePhase + val newResolveState = declaration.resolveState val newList = declaration.superTypeRefs.toList() throw IllegalStateException( """ CME while traversing superTypeRefs of declaration=${declaration.render()}: classId: ${declaration.classId}, - oldPhase: $oldResolvePhase, oldList: ${oldList.joinToString { it.render() }}, - newPhase: $newResolvePhase, newList: ${newList.joinToString { it.render() }} + oldState: $oldResolveState, oldList: ${oldList.joinToString { it.render() }}, + newState: $newResolveState, newList: ${newList.joinToString { it.render() }} """.trimIndent(), e ) } diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaClass.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaClass.kt index bfb1f7a720f..ea9d79f55c0 100644 --- a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaClass.kt +++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaClass.kt @@ -15,7 +15,6 @@ import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.FirAnnotationContainerBuilder import org.jetbrains.kotlin.fir.builder.FirBuilderDsl import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty -import org.jetbrains.kotlin.fir.caches.firCachesFactory import org.jetbrains.kotlin.fir.declarations.* import org.jetbrains.kotlin.fir.declarations.builder.FirRegularClassBuilder import org.jetbrains.kotlin.fir.expressions.FirAnnotation @@ -38,8 +37,7 @@ import kotlin.properties.Delegates class FirJavaClass @FirImplementationDetail internal constructor( override val source: KtSourceElement?, override val moduleData: FirModuleData, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val name: Name, override val origin: FirDeclarationOrigin.Java, private val unEnhancedAnnotations: MutableOrEmptyList, @@ -62,6 +60,9 @@ class FirJavaClass @FirImplementationDetail internal constructor( init { symbol.bind(this) + + @OptIn(ResolveStateAccess::class) + this.resolveState = resolvePhase.asResolveState() } override val attributes: FirDeclarationAttributes = FirDeclarationAttributes() @@ -86,10 +87,6 @@ class FirJavaClass @FirImplementationDetail internal constructor( error("${::replaceSuperTypeRefs.name} should not be called for ${this::class.simpleName}, ${superTypeRefs::class.simpleName} is lazily calulated") } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceDeprecationsProvider(newDeprecationsProvider: DeprecationsProvider) { error("${::replaceDeprecationsProvider.name} should not be called for ${this::class.simpleName}, ${deprecationsProvider::class.simpleName} is lazily calculated") } diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaConstructor.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaConstructor.kt index 049d5c69a6d..48691c53b69 100644 --- a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaConstructor.kt +++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaConstructor.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -40,8 +40,7 @@ class FirJavaConstructor @FirImplementationDetail constructor( override val typeParameters: MutableList, annotationBuilder: () -> List, override var status: FirDeclarationStatus, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val dispatchReceiverType: ConeSimpleKotlinType?, ) : FirConstructor() { override val receiverParameter: FirReceiverParameter? get() = null @@ -50,6 +49,9 @@ class FirJavaConstructor @FirImplementationDetail constructor( init { symbol.bind(this) + + @OptIn(ResolveStateAccess::class) + this.resolveState = resolvePhase.asResolveState() } override val delegatedConstructor: FirDelegatedConstructorCall? @@ -77,10 +79,6 @@ class FirJavaConstructor @FirImplementationDetail constructor( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun acceptChildren(visitor: FirVisitor, data: D) { returnTypeRef.accept(visitor, data) controlFlowGraphReference?.accept(visitor, data) diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaField.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaField.kt index eaf1dcb4767..9bbf40df958 100644 --- a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaField.kt +++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaField.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -36,8 +36,7 @@ class FirJavaField @FirImplementationDetail constructor( override val origin: FirDeclarationOrigin.Java, override val symbol: FirFieldSymbol, override val name: Name, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override var returnTypeRef: FirTypeRef, override var status: FirDeclarationStatus, override val isVar: Boolean, @@ -49,6 +48,9 @@ class FirJavaField @FirImplementationDetail constructor( ) : FirField() { init { symbol.bind(this) + + @OptIn(ResolveStateAccess::class) + this.resolveState = resolvePhase.asResolveState() } override val receiverParameter: FirReceiverParameter? get() = null @@ -97,10 +99,6 @@ class FirJavaField @FirImplementationDetail constructor( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun acceptChildren(visitor: FirVisitor, data: D) { returnTypeRef.accept(visitor, data) annotations.forEach { it.accept(visitor, data) } diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaMethod.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaMethod.kt index e06b7badc03..3433901f2f9 100644 --- a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaMethod.kt +++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaMethod.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -49,8 +49,7 @@ class FirJavaMethod @FirImplementationDetail constructor( override val source: KtSourceElement?, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin.Java, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val attributes: FirDeclarationAttributes, override var returnTypeRef: FirTypeRef, override val typeParameters: MutableList, @@ -63,6 +62,9 @@ class FirJavaMethod @FirImplementationDetail constructor( ) : FirSimpleFunction() { init { symbol.bind(this) + + @OptIn(ResolveStateAccess::class) + this.resolveState = resolvePhase.asResolveState() } override val receiverParameter: FirReceiverParameter? @@ -152,10 +154,6 @@ class FirJavaMethod @FirImplementationDetail constructor( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) { returnTypeRef = newReturnTypeRef } diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaValueParameter.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaValueParameter.kt index 95d6c978f07..59472933460 100644 --- a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaValueParameter.kt +++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaValueParameter.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -33,8 +33,7 @@ class FirJavaValueParameter @FirImplementationDetail constructor( override val source: KtSourceElement?, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin.Java, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val attributes: FirDeclarationAttributes, override var returnTypeRef: FirTypeRef, override val name: Name, @@ -46,6 +45,9 @@ class FirJavaValueParameter @FirImplementationDetail constructor( ) : FirValueParameter() { init { symbol.bind(this) + + @OptIn(ResolveStateAccess::class) + this.resolveState = resolvePhase.asResolveState() } override val isCrossinline: Boolean @@ -163,10 +165,6 @@ class FirJavaValueParameter @FirImplementationDetail constructor( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) { returnTypeRef = newReturnTypeRef } diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/scopes/JavaAnnotationSyntheticPropertiesScope.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/scopes/JavaAnnotationSyntheticPropertiesScope.kt index f5ad53116c3..08dc1e7d261 100644 --- a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/scopes/JavaAnnotationSyntheticPropertiesScope.kt +++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/scopes/JavaAnnotationSyntheticPropertiesScope.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -20,6 +20,7 @@ import org.jetbrains.kotlin.fir.symbols.impl.* import org.jetbrains.kotlin.name.CallableId import org.jetbrains.kotlin.name.ClassId import org.jetbrains.kotlin.name.Name +import org.jetbrains.kotlin.fir.declarations.resolvePhase class JavaAnnotationSyntheticPropertiesScope( private val session: FirSession, diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirImplicitBodyResolve.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirImplicitBodyResolve.kt index b111d938082..677ae207345 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirImplicitBodyResolve.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirImplicitBodyResolve.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -276,8 +276,6 @@ private class ReturnTypeCalculatorWithJump( } private fun resolvedToContractsIfNecessary(declaration: FirCallableDeclaration) { - if (declaration.resolvePhase >= FirResolvePhase.CONTRACTS) return - val canHaveContracts = when { declaration is FirProperty && !declaration.isLocal -> true declaration is FirSimpleFunction && !declaration.isLocal -> true diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/FirElementWithResolvePhase.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/FirElementWithResolveState.kt similarity index 63% rename from compiler/fir/tree/gen/org/jetbrains/kotlin/fir/FirElementWithResolvePhase.kt rename to compiler/fir/tree/gen/org/jetbrains/kotlin/fir/FirElementWithResolveState.kt index 170f71a35ab..c41990724be 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/FirElementWithResolvePhase.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/FirElementWithResolveState.kt @@ -7,23 +7,26 @@ package org.jetbrains.kotlin.fir import org.jetbrains.kotlin.KtSourceElement import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically * DO NOT MODIFY IT MANUALLY */ -abstract class FirElementWithResolvePhase : FirPureAbstractElement(), FirElement { +abstract class FirElementWithResolveState : FirPureAbstractElement(), FirElement { abstract override val source: KtSourceElement? - abstract val resolvePhase: FirResolvePhase + @Volatile + @ResolveStateAccess + lateinit var resolveState: FirResolveState abstract val moduleData: FirModuleData - override fun accept(visitor: FirVisitor, data: D): R = visitor.visitElementWithResolvePhase(this, data) + override fun accept(visitor: FirVisitor, data: D): R = visitor.visitElementWithResolveState(this, data) @Suppress("UNCHECKED_CAST") override fun transform(transformer: FirTransformer, data: D): E = - transformer.transformElementWithResolvePhase(this, data) as E - - abstract fun replaceResolvePhase(newResolvePhase: FirResolvePhase) + transformer.transformElementWithResolveState(this, data) as E } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/FirFileAnnotationsContainer.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/FirFileAnnotationsContainer.kt index 6752fd0ec8e..297f60333fd 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/FirFileAnnotationsContainer.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/FirFileAnnotationsContainer.kt @@ -7,18 +7,20 @@ package org.jetbrains.kotlin.fir import org.jetbrains.kotlin.KtSourceElement import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.impl.FirFileSymbol import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically * DO NOT MODIFY IT MANUALLY */ -abstract class FirFileAnnotationsContainer : FirElementWithResolvePhase(), FirAnnotationContainer { +abstract class FirFileAnnotationsContainer : FirElementWithResolveState(), FirAnnotationContainer { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val annotations: List abstract val containingFileSymbol: FirFileSymbol @@ -29,8 +31,6 @@ abstract class FirFileAnnotationsContainer : FirElementWithResolvePhase(), FirAn override fun transform(transformer: FirTransformer, data: D): E = transformer.transformFileAnnotationsContainer(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun transformAnnotations(transformer: FirTransformer, data: D): FirFileAnnotationsContainer diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/builder/FirFileAnnotationsContainerBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/builder/FirFileAnnotationsContainerBuilder.kt index 1d2e00458dd..c2e7e3cddbb 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/builder/FirFileAnnotationsContainerBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/builder/FirFileAnnotationsContainerBuilder.kt @@ -15,6 +15,9 @@ import org.jetbrains.kotlin.fir.builder.FirAnnotationContainerBuilder import org.jetbrains.kotlin.fir.builder.FirBuilderDsl import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.impl.FirFileAnnotationsContainerImpl import org.jetbrains.kotlin.fir.symbols.impl.FirFileSymbol diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousFunction.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousFunction.kt index de3cd4d75a7..a206d0f7371 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousFunction.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousFunction.kt @@ -19,6 +19,7 @@ import org.jetbrains.kotlin.fir.types.ConeSimpleKotlinType import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -27,7 +28,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirAnonymousFunction : FirFunction(), FirTypeParametersOwner, FirContractDescriptionOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin @@ -58,8 +58,6 @@ abstract class FirAnonymousFunction : FirFunction(), FirTypeParametersOwner, Fir override fun transform(transformer: FirTransformer, data: D): E = transformer.transformAnonymousFunction(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun replaceStatus(newStatus: FirDeclarationStatus) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousInitializer.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousInitializer.kt index 8f0771cdda8..c8d093554ea 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousInitializer.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousInitializer.kt @@ -14,6 +14,7 @@ import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference import org.jetbrains.kotlin.fir.symbols.impl.FirAnonymousInitializerSymbol import org.jetbrains.kotlin.fir.types.ConeClassLikeType import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -22,7 +23,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirAnonymousInitializer : FirDeclaration(), FirControlFlowGraphOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin @@ -38,8 +38,6 @@ abstract class FirAnonymousInitializer : FirDeclaration(), FirControlFlowGraphOw override fun transform(transformer: FirTransformer, data: D): E = transformer.transformAnonymousInitializer(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun replaceControlFlowGraphReference(newControlFlowGraphReference: FirControlFlowGraphReference?) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousObject.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousObject.kt index efb6f9859c8..20ee5b3edd3 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousObject.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirAnonymousObject.kt @@ -15,6 +15,7 @@ import org.jetbrains.kotlin.fir.scopes.FirScopeProvider import org.jetbrains.kotlin.fir.symbols.impl.FirAnonymousObjectSymbol import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -23,7 +24,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirAnonymousObject : FirClass() { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -44,8 +44,6 @@ abstract class FirAnonymousObject : FirClass() { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformAnonymousObject(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceDeprecationsProvider(newDeprecationsProvider: DeprecationsProvider) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirBackingField.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirBackingField.kt index dc86c0057af..2bef9101e6a 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirBackingField.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirBackingField.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -26,7 +27,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirBackingField : FirVariable(), FirTypeParametersOwner, FirStatement { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -56,8 +56,6 @@ abstract class FirBackingField : FirVariable(), FirTypeParametersOwner, FirState override fun transform(transformer: FirTransformer, data: D): E = transformer.transformBackingField(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) abstract override fun replaceReceiverParameter(newReceiverParameter: FirReceiverParameter?) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirCallableDeclaration.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirCallableDeclaration.kt index f9261143bd8..24ba0a09d68 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirCallableDeclaration.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirCallableDeclaration.kt @@ -14,6 +14,7 @@ import org.jetbrains.kotlin.fir.types.ConeSimpleKotlinType import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -22,7 +23,6 @@ import org.jetbrains.kotlin.fir.visitors.* sealed class FirCallableDeclaration : FirMemberDeclaration() { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin @@ -43,8 +43,6 @@ sealed class FirCallableDeclaration : FirMemberDeclaration() { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformCallableDeclaration(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun replaceStatus(newStatus: FirDeclarationStatus) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirClass.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirClass.kt index ac967a09930..fdcdde8879f 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirClass.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirClass.kt @@ -16,6 +16,7 @@ import org.jetbrains.kotlin.fir.scopes.FirScopeProvider import org.jetbrains.kotlin.fir.symbols.impl.FirClassSymbol import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -24,7 +25,6 @@ import org.jetbrains.kotlin.fir.visitors.* sealed class FirClass : FirClassLikeDeclaration(), FirStatement, FirTypeParameterRefsOwner, FirControlFlowGraphOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -45,8 +45,6 @@ sealed class FirClass : FirClassLikeDeclaration(), FirStatement, FirTypeParamete override fun transform(transformer: FirTransformer, data: D): E = transformer.transformClass(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceDeprecationsProvider(newDeprecationsProvider: DeprecationsProvider) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirClassLikeDeclaration.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirClassLikeDeclaration.kt index 5a46b857329..f3f5cc64b8e 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirClassLikeDeclaration.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirClassLikeDeclaration.kt @@ -12,6 +12,7 @@ import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirStatement import org.jetbrains.kotlin.fir.symbols.impl.FirClassLikeSymbol import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -20,7 +21,6 @@ import org.jetbrains.kotlin.fir.visitors.* sealed class FirClassLikeDeclaration : FirMemberDeclaration(), FirStatement { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin @@ -36,8 +36,6 @@ sealed class FirClassLikeDeclaration : FirMemberDeclaration(), FirStatement { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformClassLikeDeclaration(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun replaceStatus(newStatus: FirDeclarationStatus) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirConstructor.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirConstructor.kt index 8e8a6e84684..7f57dc3aa76 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirConstructor.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirConstructor.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.types.ConeSimpleKotlinType import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -26,7 +27,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirConstructor : FirFunction(), FirTypeParameterRefsOwner, FirContractDescriptionOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -53,8 +53,6 @@ abstract class FirConstructor : FirFunction(), FirTypeParameterRefsOwner, FirCon override fun transform(transformer: FirTransformer, data: D): E = transformer.transformConstructor(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirDanglingModifierList.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirDanglingModifierList.kt index 1adbf2b0536..8d9f30a8c26 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirDanglingModifierList.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirDanglingModifierList.kt @@ -13,6 +13,7 @@ import org.jetbrains.kotlin.fir.diagnostics.FirDiagnosticHolder import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.impl.FirDanglingModifierSymbol import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -21,7 +22,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirDanglingModifierList : FirDeclaration(), FirDiagnosticHolder { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin @@ -35,8 +35,6 @@ abstract class FirDanglingModifierList : FirDeclaration(), FirDiagnosticHolder { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformDanglingModifierList(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun transformAnnotations(transformer: FirTransformer, data: D): FirDanglingModifierList diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirDeclaration.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirDeclaration.kt index 10a9bbb8e89..f878807b154 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirDeclaration.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirDeclaration.kt @@ -8,20 +8,20 @@ package org.jetbrains.kotlin.fir.declarations import org.jetbrains.kotlin.KtSourceElement import org.jetbrains.kotlin.fir.FirAnnotationContainer import org.jetbrains.kotlin.fir.FirElement -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirModuleData import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically * DO NOT MODIFY IT MANUALLY */ -sealed class FirDeclaration : FirElementWithResolvePhase(), FirAnnotationContainer { +sealed class FirDeclaration : FirElementWithResolveState(), FirAnnotationContainer { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract val symbol: FirBasedSymbol abstract override val moduleData: FirModuleData @@ -34,8 +34,6 @@ sealed class FirDeclaration : FirElementWithResolvePhase(), FirAnnotationContain override fun transform(transformer: FirTransformer, data: D): E = transformer.transformDeclaration(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun transformAnnotations(transformer: FirTransformer, data: D): FirDeclaration diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirEnumEntry.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirEnumEntry.kt index 8f89a962fbb..21104ee9c5e 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirEnumEntry.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirEnumEntry.kt @@ -16,6 +16,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -24,7 +25,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirEnumEntry : FirVariable() { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -53,8 +53,6 @@ abstract class FirEnumEntry : FirVariable() { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformEnumEntry(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirErrorFunction.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirErrorFunction.kt index 3ebdde94a6d..03490d546cb 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirErrorFunction.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirErrorFunction.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.types.ConeSimpleKotlinType import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -26,11 +27,11 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirErrorFunction : FirFunction(), FirDiagnosticHolder { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes + abstract override val typeParameters: List abstract override val status: FirDeclarationStatus abstract override val returnTypeRef: FirTypeRef abstract override val receiverParameter: FirReceiverParameter? @@ -43,7 +44,6 @@ abstract class FirErrorFunction : FirFunction(), FirDiagnosticHolder { abstract override val body: FirBlock? abstract override val diagnostic: ConeDiagnostic abstract override val symbol: FirErrorFunctionSymbol - abstract override val typeParameters: List override fun accept(visitor: FirVisitor, data: D): R = visitor.visitErrorFunction(this, data) @@ -51,8 +51,6 @@ abstract class FirErrorFunction : FirFunction(), FirDiagnosticHolder { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformErrorFunction(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun replaceStatus(newStatus: FirDeclarationStatus) @@ -73,6 +71,8 @@ abstract class FirErrorFunction : FirFunction(), FirDiagnosticHolder { abstract override fun transformAnnotations(transformer: FirTransformer, data: D): FirErrorFunction + abstract override fun transformTypeParameters(transformer: FirTransformer, data: D): FirErrorFunction + abstract override fun transformStatus(transformer: FirTransformer, data: D): FirErrorFunction abstract override fun transformReturnTypeRef(transformer: FirTransformer, data: D): FirErrorFunction @@ -82,6 +82,4 @@ abstract class FirErrorFunction : FirFunction(), FirDiagnosticHolder { abstract override fun transformValueParameters(transformer: FirTransformer, data: D): FirErrorFunction abstract override fun transformBody(transformer: FirTransformer, data: D): FirErrorFunction - - abstract override fun transformTypeParameters(transformer: FirTransformer, data: D): FirErrorFunction } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirErrorProperty.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirErrorProperty.kt index 7f165e4a921..ec80df29f0d 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirErrorProperty.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirErrorProperty.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -26,7 +27,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirErrorProperty : FirVariable(), FirDiagnosticHolder { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -56,8 +56,6 @@ abstract class FirErrorProperty : FirVariable(), FirDiagnosticHolder { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformErrorProperty(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirField.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirField.kt index 8ec9bd4f603..9cd234b53b2 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirField.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirField.kt @@ -17,6 +17,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -25,7 +26,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirField : FirVariable(), FirControlFlowGraphOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -55,8 +55,6 @@ abstract class FirField : FirVariable(), FirControlFlowGraphOwner { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformField(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirFile.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirFile.kt index 280c2236632..938f6658d92 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirFile.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirFile.kt @@ -15,6 +15,7 @@ import org.jetbrains.kotlin.fir.FirPackageDirective import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.impl.FirFileSymbol import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -23,7 +24,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirFile : FirDeclaration() { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin @@ -43,8 +43,6 @@ abstract class FirFile : FirDeclaration() { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformFile(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun transformAnnotations(transformer: FirTransformer, data: D): FirFile diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirFunction.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirFunction.kt index f6f5d0c7268..3bae711360e 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirFunction.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirFunction.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.types.ConeSimpleKotlinType import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -26,7 +27,6 @@ import org.jetbrains.kotlin.fir.visitors.* sealed class FirFunction : FirCallableDeclaration(), FirTargetElement, FirControlFlowGraphOwner, FirStatement { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin @@ -50,8 +50,6 @@ sealed class FirFunction : FirCallableDeclaration(), FirTargetElement, FirContro override fun transform(transformer: FirTransformer, data: D): E = transformer.transformFunction(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun replaceStatus(newStatus: FirDeclarationStatus) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirMemberDeclaration.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirMemberDeclaration.kt index 22b7dbbf44c..c3ea9cecd92 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirMemberDeclaration.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirMemberDeclaration.kt @@ -11,6 +11,7 @@ import org.jetbrains.kotlin.fir.FirModuleData import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -19,7 +20,6 @@ import org.jetbrains.kotlin.fir.visitors.* sealed class FirMemberDeclaration : FirDeclaration(), FirTypeParameterRefsOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract override val symbol: FirBasedSymbol abstract override val moduleData: FirModuleData @@ -34,8 +34,6 @@ sealed class FirMemberDeclaration : FirDeclaration(), FirTypeParameterRefsOwner override fun transform(transformer: FirTransformer, data: D): E = transformer.transformMemberDeclaration(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract fun replaceStatus(newStatus: FirDeclarationStatus) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirProperty.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirProperty.kt index 27f724c5df3..a0d37e93bcf 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirProperty.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirProperty.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -26,7 +27,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirProperty : FirVariable(), FirTypeParametersOwner, FirControlFlowGraphOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -59,8 +59,6 @@ abstract class FirProperty : FirVariable(), FirTypeParametersOwner, FirControlFl override fun transform(transformer: FirTransformer, data: D): E = transformer.transformProperty(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirPropertyAccessor.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirPropertyAccessor.kt index 96698ea7b0e..922e35ee467 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirPropertyAccessor.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirPropertyAccessor.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.types.ConeSimpleKotlinType import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -26,7 +27,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirPropertyAccessor : FirFunction(), FirContractDescriptionOwner, FirTypeParametersOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -54,8 +54,6 @@ abstract class FirPropertyAccessor : FirFunction(), FirContractDescriptionOwner, override fun transform(transformer: FirTransformer, data: D): E = transformer.transformPropertyAccessor(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirRegularClass.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirRegularClass.kt index 1b207af5731..0c6e5f42099 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirRegularClass.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirRegularClass.kt @@ -16,6 +16,7 @@ import org.jetbrains.kotlin.fir.symbols.impl.FirRegularClassSymbol import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -24,7 +25,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirRegularClass : FirClass() { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -49,8 +49,6 @@ abstract class FirRegularClass : FirClass() { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformRegularClass(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceDeprecationsProvider(newDeprecationsProvider: DeprecationsProvider) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirScript.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirScript.kt index e6cb4211e72..66717d1339f 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirScript.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirScript.kt @@ -13,6 +13,7 @@ import org.jetbrains.kotlin.fir.expressions.FirStatement import org.jetbrains.kotlin.fir.symbols.impl.FirScriptSymbol import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -21,7 +22,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirScript : FirDeclaration() { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val annotations: List abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin @@ -38,8 +38,6 @@ abstract class FirScript : FirDeclaration() { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformScript(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceAnnotations(newAnnotations: List) abstract override fun transformAnnotations(transformer: FirTransformer, data: D): FirScript diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirSimpleFunction.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirSimpleFunction.kt index 63c87bbb8ae..a5f4fba23c3 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirSimpleFunction.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirSimpleFunction.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -26,7 +27,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirSimpleFunction : FirFunction(), FirContractDescriptionOwner, FirTypeParametersOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -52,8 +52,6 @@ abstract class FirSimpleFunction : FirFunction(), FirContractDescriptionOwner, F override fun transform(transformer: FirTransformer, data: D): E = transformer.transformSimpleFunction(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirTypeAlias.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirTypeAlias.kt index 35964280e73..3b07266c896 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirTypeAlias.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirTypeAlias.kt @@ -13,6 +13,7 @@ import org.jetbrains.kotlin.fir.symbols.impl.FirTypeAliasSymbol import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -21,7 +22,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirTypeAlias : FirClassLikeDeclaration(), FirTypeParametersOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -39,8 +39,6 @@ abstract class FirTypeAlias : FirClassLikeDeclaration(), FirTypeParametersOwner override fun transform(transformer: FirTransformer, data: D): E = transformer.transformTypeAlias(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceDeprecationsProvider(newDeprecationsProvider: DeprecationsProvider) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirTypeParameter.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirTypeParameter.kt index 93a7499a8ab..7e92f5ff697 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirTypeParameter.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirTypeParameter.kt @@ -15,6 +15,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.types.Variance import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -23,7 +24,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirTypeParameter : FirTypeParameterRef, FirDeclaration() { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -41,8 +41,6 @@ abstract class FirTypeParameter : FirTypeParameterRef, FirDeclaration() { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformTypeParameter(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract fun replaceBounds(newBounds: List) abstract override fun replaceAnnotations(newAnnotations: List) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirValueParameter.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirValueParameter.kt index c22077ad873..0b621b907cb 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirValueParameter.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirValueParameter.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -26,7 +27,6 @@ import org.jetbrains.kotlin.fir.visitors.* abstract class FirValueParameter : FirVariable(), FirControlFlowGraphOwner { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -61,8 +61,6 @@ abstract class FirValueParameter : FirVariable(), FirControlFlowGraphOwner { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformValueParameter(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirVariable.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirVariable.kt index 9409edb51ce..32ef41e80dd 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirVariable.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/FirVariable.kt @@ -17,6 +17,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource import org.jetbrains.kotlin.fir.visitors.* +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -25,7 +26,6 @@ import org.jetbrains.kotlin.fir.visitors.* sealed class FirVariable : FirCallableDeclaration(), FirStatement { abstract override val source: KtSourceElement? - abstract override val resolvePhase: FirResolvePhase abstract override val moduleData: FirModuleData abstract override val origin: FirDeclarationOrigin abstract override val attributes: FirDeclarationAttributes @@ -54,8 +54,6 @@ sealed class FirVariable : FirCallableDeclaration(), FirStatement { override fun transform(transformer: FirTransformer, data: D): E = transformer.transformVariable(this, data) as E - abstract override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) - abstract override fun replaceStatus(newStatus: FirDeclarationStatus) abstract override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousFunctionBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousFunctionBuilder.kt index 454eead126f..4501cc64e38 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousFunctionBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousFunctionBuilder.kt @@ -25,13 +25,17 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameter import org.jetbrains.kotlin.fir.declarations.FirValueParameter import org.jetbrains.kotlin.fir.declarations.InlineStatus +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirFunctionBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirAnonymousFunctionImpl import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirBlock import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference @@ -50,6 +54,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ @FirBuilderDsl class FirAnonymousFunctionBuilder : FirFunctionBuilder, FirAnnotationContainerBuilder { override var source: KtSourceElement? = null + override var resolvePhase: FirResolvePhase = FirResolvePhase.RAW_FIR override val annotations: MutableList = mutableListOf() override lateinit var moduleData: FirModuleData override lateinit var origin: FirDeclarationOrigin @@ -76,6 +81,7 @@ class FirAnonymousFunctionBuilder : FirFunctionBuilder, FirAnnotationContainerBu override fun build(): FirAnonymousFunction { return FirAnonymousFunctionImpl( source, + resolvePhase, annotations.toMutableOrEmpty(), moduleData, origin, @@ -102,13 +108,6 @@ class FirAnonymousFunctionBuilder : FirFunctionBuilder, FirAnnotationContainerBu } - @Deprecated("Modification of 'resolvePhase' has no impact for FirAnonymousFunctionBuilder", level = DeprecationLevel.HIDDEN) - override var resolvePhase: FirResolvePhase - get() = throw IllegalStateException() - set(_) { - throw IllegalStateException() - } - @Deprecated("Modification of 'status' has no impact for FirAnonymousFunctionBuilder", level = DeprecationLevel.HIDDEN) override var status: FirDeclarationStatus get() = throw IllegalStateException() @@ -132,6 +131,7 @@ inline fun buildAnonymousFunctionCopy(original: FirAnonymousFunction, init: FirA } val copyBuilder = FirAnonymousFunctionBuilder() copyBuilder.source = original.source + copyBuilder.resolvePhase = original.resolvePhase copyBuilder.annotations.addAll(original.annotations) copyBuilder.moduleData = original.moduleData copyBuilder.origin = original.origin diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousInitializerBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousInitializerBuilder.kt index 5a691177d3b..694ec12c51b 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousInitializerBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousInitializerBuilder.kt @@ -17,6 +17,9 @@ import org.jetbrains.kotlin.fir.declarations.FirAnonymousInitializer import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirDeclarationBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirAnonymousInitializerImpl import org.jetbrains.kotlin.fir.expressions.FirAnnotation diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousObjectBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousObjectBuilder.kt index 6aceba97c52..8cb5c359c20 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousObjectBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirAnonymousObjectBuilder.kt @@ -21,8 +21,11 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirClassBuilder import org.jetbrains.kotlin.fir.declarations.builder.FirDeclarationBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirAnonymousObjectImpl diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirBackingFieldBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirBackingFieldBuilder.kt index f39d267925d..2fdd632b422 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirBackingFieldBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirBackingFieldBuilder.kt @@ -23,8 +23,11 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirBackingFieldImpl import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirExpression diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirConstructorBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirConstructorBuilder.kt index 2d40588fd0d..0ef22d1152e 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirConstructorBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirConstructorBuilder.kt @@ -23,11 +23,15 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirAbstractConstructorBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirConstructorImpl +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirBlock import org.jetbrains.kotlin.fir.expressions.FirDelegatedConstructorCall diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirDanglingModifierListBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirDanglingModifierListBuilder.kt index 192f3d04311..cf30c651c9f 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirDanglingModifierListBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirDanglingModifierListBuilder.kt @@ -17,6 +17,9 @@ import org.jetbrains.kotlin.fir.declarations.FirDanglingModifierList import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirDanglingModifierListImpl import org.jetbrains.kotlin.fir.diagnostics.ConeDiagnostic import org.jetbrains.kotlin.fir.expressions.FirAnnotation diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirDefaultSetterValueParameterBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirDefaultSetterValueParameterBuilder.kt index 3176c0da496..07fdefd3cb5 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirDefaultSetterValueParameterBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirDefaultSetterValueParameterBuilder.kt @@ -22,9 +22,12 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirDefaultSetterValueParameter import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl import org.jetbrains.kotlin.fir.expressions.FirAnnotation diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirEnumEntryBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirEnumEntryBuilder.kt index 8813b6812b0..26bbd348738 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirEnumEntryBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirEnumEntryBuilder.kt @@ -23,8 +23,11 @@ import org.jetbrains.kotlin.fir.declarations.FirEnumEntry import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirEnumEntryImpl import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirExpression diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirErrorFunctionBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirErrorFunctionBuilder.kt index 450fed858b3..565492ebda6 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirErrorFunctionBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirErrorFunctionBuilder.kt @@ -21,9 +21,12 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirErrorFunction import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase -import org.jetbrains.kotlin.fir.declarations.FirTypeParameter +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirErrorFunctionImpl import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl import org.jetbrains.kotlin.fir.diagnostics.ConeDiagnostic diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirErrorPropertyBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirErrorPropertyBuilder.kt index 0e482c42948..52f2e84f16b 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirErrorPropertyBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirErrorPropertyBuilder.kt @@ -23,8 +23,11 @@ import org.jetbrains.kotlin.fir.declarations.FirErrorProperty import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirErrorPropertyImpl import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl import org.jetbrains.kotlin.fir.diagnostics.ConeDiagnostic diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirFieldBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirFieldBuilder.kt index c88b80c58b8..343fcf96386 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirFieldBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirFieldBuilder.kt @@ -24,8 +24,11 @@ import org.jetbrains.kotlin.fir.declarations.FirField import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirVariableBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirFieldImpl import org.jetbrains.kotlin.fir.expressions.FirAnnotation diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirFileBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirFileBuilder.kt index 9d256232b34..ea6b55e858b 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirFileBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirFileBuilder.kt @@ -23,6 +23,9 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirFile import org.jetbrains.kotlin.fir.declarations.FirImport import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirFileImpl import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.impl.FirFileSymbol diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPrimaryConstructorBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPrimaryConstructorBuilder.kt index d2b2dee64cb..2c3832d6f97 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPrimaryConstructorBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPrimaryConstructorBuilder.kt @@ -24,9 +24,12 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirAbstractConstructorBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirPrimaryConstructor import org.jetbrains.kotlin.fir.expressions.FirAnnotation diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPropertyAccessorBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPropertyAccessorBuilder.kt index 9cc72a2e4de..332dfd0b88b 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPropertyAccessorBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPropertyAccessorBuilder.kt @@ -25,11 +25,15 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameter import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirFunctionBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirPropertyAccessorImpl +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirBlock import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPropertyBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPropertyBuilder.kt index 96b734ead50..eea9f90d75c 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPropertyBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirPropertyBuilder.kt @@ -24,11 +24,15 @@ import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirPropertyBodyResolveState import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirTypeParametersOwnerBuilder import org.jetbrains.kotlin.fir.declarations.builder.FirVariableBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirPropertyImpl +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirRegularClassBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirRegularClassBuilder.kt index 2c54d2e482f..846b965d60c 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirRegularClassBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirRegularClassBuilder.kt @@ -22,11 +22,15 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirRegularClass import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirClassBuilder import org.jetbrains.kotlin.fir.declarations.builder.FirTypeParameterRefsOwnerBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirRegularClassImpl +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference import org.jetbrains.kotlin.fir.scopes.FirScopeProvider diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirScriptBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirScriptBuilder.kt index 87f03de4060..e9a0f923ace 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirScriptBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirScriptBuilder.kt @@ -17,9 +17,13 @@ import org.jetbrains.kotlin.fir.declarations.FirContextReceiver import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirScript import org.jetbrains.kotlin.fir.declarations.FirVariable +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirScriptImpl +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirStatement import org.jetbrains.kotlin.fir.symbols.impl.FirScriptSymbol diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirSimpleFunctionBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirSimpleFunctionBuilder.kt index 2fef3e38599..0992698a91a 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirSimpleFunctionBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirSimpleFunctionBuilder.kt @@ -22,13 +22,17 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirSimpleFunction import org.jetbrains.kotlin.fir.declarations.FirTypeParameter import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirFunctionBuilder import org.jetbrains.kotlin.fir.declarations.builder.FirTypeParametersOwnerBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirSimpleFunctionImpl +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirBlock import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirTypeAliasBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirTypeAliasBuilder.kt index c68a14593ab..80f75b3d073 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirTypeAliasBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirTypeAliasBuilder.kt @@ -18,12 +18,16 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeAlias import org.jetbrains.kotlin.fir.declarations.FirTypeParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.builder.FirDeclarationBuilder import org.jetbrains.kotlin.fir.declarations.builder.FirTypeParametersOwnerBuilder import org.jetbrains.kotlin.fir.declarations.impl.FirTypeAliasImpl +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.impl.FirTypeAliasSymbol import org.jetbrains.kotlin.fir.types.FirTypeRef diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirTypeParameterBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirTypeParameterBuilder.kt index 41bd159ed3d..9675a401331 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirTypeParameterBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirTypeParameterBuilder.kt @@ -16,8 +16,12 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirTypeParameterImpl +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol import org.jetbrains.kotlin.fir.symbols.impl.FirTypeParameterSymbol diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirValueParameterBuilder.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirValueParameterBuilder.kt index 8e958b58137..044ada6e75c 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirValueParameterBuilder.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/builder/FirValueParameterBuilder.kt @@ -22,11 +22,15 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess import org.jetbrains.kotlin.fir.declarations.UnresolvedDeprecationProvider +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl import org.jetbrains.kotlin.fir.declarations.impl.FirValueParameterImpl +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousFunctionImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousFunctionImpl.kt index 2ddec862632..fa16e33cfa5 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousFunctionImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousFunctionImpl.kt @@ -20,9 +20,11 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameter import org.jetbrains.kotlin.fir.declarations.FirValueParameter import org.jetbrains.kotlin.fir.declarations.InlineStatus +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirBlock @@ -34,6 +36,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -42,6 +45,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirAnonymousFunctionImpl( override val source: KtSourceElement?, + resolvePhase: FirResolvePhase, override var annotations: MutableOrEmptyList, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, @@ -65,12 +69,12 @@ internal class FirAnonymousFunctionImpl( override val typeParameters: MutableList, override var typeRef: FirTypeRef, ) : FirAnonymousFunction() { - @Volatile - override var resolvePhase: FirResolvePhase = FirResolvePhase.DECLARATIONS override var status: FirDeclarationStatus = FirResolvedDeclarationStatusImpl.DEFAULT_STATUS_FOR_STATUSLESS_DECLARATIONS init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -144,10 +148,6 @@ internal class FirAnonymousFunctionImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceAnnotations(newAnnotations: List) { annotations = newAnnotations.toMutableOrEmpty() } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousInitializerImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousInitializerImpl.kt index 9d16c0ed8f7..cf3a1f3f0e7 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousInitializerImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousInitializerImpl.kt @@ -13,6 +13,8 @@ import org.jetbrains.kotlin.fir.declarations.FirAnonymousInitializer import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirBlock import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference @@ -21,6 +23,7 @@ import org.jetbrains.kotlin.fir.types.ConeClassLikeType import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -29,8 +32,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirAnonymousInitializerImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -43,6 +45,8 @@ internal class FirAnonymousInitializerImpl( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -60,10 +64,6 @@ internal class FirAnonymousInitializerImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceAnnotations(newAnnotations: List) {} override fun replaceControlFlowGraphReference(newControlFlowGraphReference: FirControlFlowGraphReference?) { diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousObjectImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousObjectImpl.kt index 76ad00a482e..dd2ed59ebaf 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousObjectImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirAnonymousObjectImpl.kt @@ -17,7 +17,9 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference import org.jetbrains.kotlin.fir.scopes.FirScopeProvider @@ -26,6 +28,7 @@ import org.jetbrains.kotlin.fir.types.FirTypeRef import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -34,8 +37,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirAnonymousObjectImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -53,6 +55,8 @@ internal class FirAnonymousObjectImpl( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -99,10 +103,6 @@ internal class FirAnonymousObjectImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirBackingFieldImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirBackingFieldImpl.kt index 7eb1967bc6f..5176a8c8a98 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirBackingFieldImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirBackingFieldImpl.kt @@ -19,7 +19,9 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.symbols.impl.FirBackingFieldSymbol @@ -31,6 +33,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -39,8 +42,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty open class FirBackingFieldImpl @FirImplementationDetail constructor( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -66,6 +68,8 @@ open class FirBackingFieldImpl @FirImplementationDetail constructor( ) : FirBackingField() { init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -152,10 +156,6 @@ open class FirBackingFieldImpl @FirImplementationDetail constructor( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) { returnTypeRef = newReturnTypeRef } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirConstructorImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirConstructorImpl.kt index c9230e52ff3..050235445b1 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirConstructorImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirConstructorImpl.kt @@ -18,8 +18,10 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirBlock import org.jetbrains.kotlin.fir.expressions.FirDelegatedConstructorCall @@ -31,6 +33,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -39,8 +42,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirConstructorImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -64,6 +66,8 @@ internal class FirConstructorImpl( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -140,10 +144,6 @@ internal class FirConstructorImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirDanglingModifierListImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirDanglingModifierListImpl.kt index 3860d515d54..f289306788a 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirDanglingModifierListImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirDanglingModifierListImpl.kt @@ -13,12 +13,15 @@ import org.jetbrains.kotlin.fir.declarations.FirDanglingModifierList import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.diagnostics.ConeDiagnostic import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.impl.FirDanglingModifierSymbol import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -27,8 +30,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirDanglingModifierListImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override var annotations: MutableOrEmptyList, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, @@ -38,6 +40,8 @@ internal class FirDanglingModifierListImpl( ) : FirDanglingModifierList() { init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -54,10 +58,6 @@ internal class FirDanglingModifierListImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceAnnotations(newAnnotations: List) { annotations = newAnnotations.toMutableOrEmpty() } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirDefaultSetterValueParameter.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirDefaultSetterValueParameter.kt index 95371bc7e20..007608938d6 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirDefaultSetterValueParameter.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirDefaultSetterValueParameter.kt @@ -18,8 +18,10 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirExpression @@ -33,6 +35,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -41,8 +44,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirDefaultSetterValueParameter( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -74,6 +76,8 @@ internal class FirDefaultSetterValueParameter( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -161,10 +165,6 @@ internal class FirDefaultSetterValueParameter( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirEnumEntryImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirEnumEntryImpl.kt index 27af0e2d30c..e76d0eb0c59 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirEnumEntryImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirEnumEntryImpl.kt @@ -19,7 +19,9 @@ import org.jetbrains.kotlin.fir.declarations.FirEnumEntry import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.symbols.impl.FirEnumEntrySymbol @@ -30,6 +32,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -38,8 +41,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirEnumEntryImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -65,6 +67,8 @@ internal class FirEnumEntryImpl( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -139,10 +143,6 @@ internal class FirEnumEntryImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirErrorFunctionImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirErrorFunctionImpl.kt index 406104fc39c..28dd71b8404 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirErrorFunctionImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirErrorFunctionImpl.kt @@ -17,8 +17,10 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirErrorFunction import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase -import org.jetbrains.kotlin.fir.declarations.FirTypeParameter +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl import org.jetbrains.kotlin.fir.diagnostics.ConeDiagnostic import org.jetbrains.kotlin.fir.expressions.FirAnnotation @@ -32,6 +34,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -40,8 +43,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirErrorFunctionImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override var annotations: MutableOrEmptyList, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, @@ -54,15 +56,17 @@ internal class FirErrorFunctionImpl( override val diagnostic: ConeDiagnostic, override val symbol: FirErrorFunctionSymbol, ) : FirErrorFunction() { + override val typeParameters: List get() = emptyList() override var status: FirDeclarationStatus = FirResolvedDeclarationStatusImpl.DEFAULT_STATUS_FOR_STATUSLESS_DECLARATIONS override var returnTypeRef: FirTypeRef = FirErrorTypeRefImpl(null, null, diagnostic, false) override val receiverParameter: FirReceiverParameter? get() = null override var controlFlowGraphReference: FirControlFlowGraphReference? = null override val body: FirBlock? get() = null - override val typeParameters: List get() = emptyList() init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -89,6 +93,10 @@ internal class FirErrorFunctionImpl( return this } + override fun transformTypeParameters(transformer: FirTransformer, data: D): FirErrorFunctionImpl { + return this + } + override fun transformStatus(transformer: FirTransformer, data: D): FirErrorFunctionImpl { status = status.transform(transformer, data) return this @@ -112,14 +120,6 @@ internal class FirErrorFunctionImpl( return this } - override fun transformTypeParameters(transformer: FirTransformer, data: D): FirErrorFunctionImpl { - return this - } - - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceAnnotations(newAnnotations: List) { annotations = newAnnotations.toMutableOrEmpty() } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirErrorPropertyImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirErrorPropertyImpl.kt index 1871e028f3c..52801295e85 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirErrorPropertyImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirErrorPropertyImpl.kt @@ -19,7 +19,9 @@ import org.jetbrains.kotlin.fir.declarations.FirErrorProperty import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl import org.jetbrains.kotlin.fir.diagnostics.ConeDiagnostic import org.jetbrains.kotlin.fir.expressions.FirAnnotation @@ -33,6 +35,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -41,8 +44,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirErrorPropertyImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -69,6 +71,8 @@ internal class FirErrorPropertyImpl( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -137,10 +141,6 @@ internal class FirErrorPropertyImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirFieldImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirFieldImpl.kt index 1bbe5610618..0a2019bb9c7 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirFieldImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirFieldImpl.kt @@ -20,7 +20,9 @@ import org.jetbrains.kotlin.fir.declarations.FirField import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference @@ -32,6 +34,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -40,8 +43,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty class FirFieldImpl @FirImplementationDetail constructor( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -68,6 +70,8 @@ class FirFieldImpl @FirImplementationDetail constructor( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -144,10 +148,6 @@ class FirFieldImpl @FirImplementationDetail constructor( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirFileImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirFileImpl.kt index ae650aa6070..6f126017fa5 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirFileImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirFileImpl.kt @@ -19,11 +19,14 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirFile import org.jetbrains.kotlin.fir.declarations.FirImport import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.impl.FirFileSymbol import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -32,8 +35,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirFileImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -50,6 +52,8 @@ internal class FirFileImpl( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -86,9 +90,5 @@ internal class FirFileImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceAnnotations(newAnnotations: List) {} } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPrimaryConstructor.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPrimaryConstructor.kt index 06968f2c4cf..2ff5199903f 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPrimaryConstructor.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPrimaryConstructor.kt @@ -19,8 +19,10 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirBlock import org.jetbrains.kotlin.fir.expressions.FirDelegatedConstructorCall @@ -32,6 +34,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -40,8 +43,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty class FirPrimaryConstructor @FirImplementationDetail constructor( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -65,6 +67,8 @@ class FirPrimaryConstructor @FirImplementationDetail constructor( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -141,10 +145,6 @@ class FirPrimaryConstructor @FirImplementationDetail constructor( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPropertyAccessorImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPropertyAccessorImpl.kt index 233d93eb3fd..e5b61d67839 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPropertyAccessorImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPropertyAccessorImpl.kt @@ -20,8 +20,10 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameter import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirBlock import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference @@ -33,6 +35,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -41,8 +44,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty open class FirPropertyAccessorImpl @FirImplementationDetail constructor( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -67,6 +69,8 @@ open class FirPropertyAccessorImpl @FirImplementationDetail constructor( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -133,10 +137,6 @@ open class FirPropertyAccessorImpl @FirImplementationDetail constructor( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPropertyImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPropertyImpl.kt index 1019b2402cd..3ea0df9754d 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPropertyImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirPropertyImpl.kt @@ -20,7 +20,9 @@ import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirPropertyBodyResolveState import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference @@ -34,6 +36,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -42,8 +45,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirPropertyImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -74,6 +76,8 @@ internal class FirPropertyImpl( init { symbol.bind(this) delegateFieldSymbol?.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -167,10 +171,6 @@ internal class FirPropertyImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirRegularClassImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirRegularClassImpl.kt index 836e60f6265..e5c4af874f7 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirRegularClassImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirRegularClassImpl.kt @@ -18,7 +18,9 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirRegularClass import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference import org.jetbrains.kotlin.fir.scopes.FirScopeProvider @@ -28,6 +30,7 @@ import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -36,8 +39,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirRegularClassImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -59,6 +61,8 @@ internal class FirRegularClassImpl( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -107,10 +111,6 @@ internal class FirRegularClassImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirScriptImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirScriptImpl.kt index 80f4f414063..59f767309a7 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirScriptImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirScriptImpl.kt @@ -13,8 +13,10 @@ import org.jetbrains.kotlin.fir.declarations.FirContextReceiver import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirScript import org.jetbrains.kotlin.fir.declarations.FirVariable +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirStatement import org.jetbrains.kotlin.fir.symbols.impl.FirScriptSymbol @@ -22,6 +24,7 @@ import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -30,8 +33,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirScriptImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override var annotations: MutableOrEmptyList, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, @@ -44,6 +46,8 @@ internal class FirScriptImpl( ) : FirScript() { init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -71,10 +75,6 @@ internal class FirScriptImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceAnnotations(newAnnotations: List) { annotations = newAnnotations.toMutableOrEmpty() } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirSimpleFunctionImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirSimpleFunctionImpl.kt index 13a0eb1428c..8af96c3b79e 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirSimpleFunctionImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirSimpleFunctionImpl.kt @@ -17,9 +17,11 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirSimpleFunction import org.jetbrains.kotlin.fir.declarations.FirTypeParameter import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirBlock import org.jetbrains.kotlin.fir.references.FirControlFlowGraphReference @@ -31,6 +33,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -39,8 +42,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirSimpleFunctionImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -63,6 +65,8 @@ internal class FirSimpleFunctionImpl( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -132,10 +136,6 @@ internal class FirSimpleFunctionImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirTypeAliasImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirTypeAliasImpl.kt index 56b4ec0c55b..7dcedacfab7 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirTypeAliasImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirTypeAliasImpl.kt @@ -14,8 +14,10 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeAlias import org.jetbrains.kotlin.fir.declarations.FirTypeParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.impl.FirTypeAliasSymbol import org.jetbrains.kotlin.fir.types.FirTypeRef @@ -23,6 +25,7 @@ import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -31,8 +34,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirTypeAliasImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -46,6 +48,8 @@ internal class FirTypeAliasImpl( ) : FirTypeAlias() { init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -83,10 +87,6 @@ internal class FirTypeAliasImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirTypeParameterImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirTypeParameterImpl.kt index 28d7e228c8d..a0cabbce7c1 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirTypeParameterImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirTypeParameterImpl.kt @@ -12,7 +12,9 @@ import org.jetbrains.kotlin.fir.FirModuleData import org.jetbrains.kotlin.fir.declarations.FirDeclarationAttributes import org.jetbrains.kotlin.fir.declarations.FirDeclarationOrigin import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol import org.jetbrains.kotlin.fir.symbols.impl.FirTypeParameterSymbol @@ -22,6 +24,7 @@ import org.jetbrains.kotlin.types.Variance import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -30,8 +33,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirTypeParameterImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -45,6 +47,8 @@ internal class FirTypeParameterImpl( ) : FirTypeParameter() { init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -63,10 +67,6 @@ internal class FirTypeParameterImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceBounds(newBounds: List) { bounds.clear() bounds.addAll(newBounds) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirValueParameterImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirValueParameterImpl.kt index 894311aa9e2..9ffd840f8dc 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirValueParameterImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/declarations/impl/FirValueParameterImpl.kt @@ -18,8 +18,10 @@ import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirPropertyAccessor import org.jetbrains.kotlin.fir.declarations.FirReceiverParameter import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRef import org.jetbrains.kotlin.fir.declarations.FirValueParameter +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.declarations.impl.FirResolvedDeclarationStatusImpl import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.expressions.FirExpression @@ -33,6 +35,7 @@ import org.jetbrains.kotlin.serialization.deserialization.descriptors.Deserializ import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -41,8 +44,7 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirValueParameterImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override val origin: FirDeclarationOrigin, override val attributes: FirDeclarationAttributes, @@ -74,6 +76,8 @@ internal class FirValueParameterImpl( init { symbol.bind(this) + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() } override fun acceptChildren(visitor: FirVisitor, data: D) { @@ -146,10 +150,6 @@ internal class FirValueParameterImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceStatus(newStatus: FirDeclarationStatus) { status = newStatus } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/impl/FirFileAnnotationsContainerImpl.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/impl/FirFileAnnotationsContainerImpl.kt index 5820f10f28d..9dcaf66a40e 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/impl/FirFileAnnotationsContainerImpl.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/impl/FirFileAnnotationsContainerImpl.kt @@ -11,11 +11,14 @@ import org.jetbrains.kotlin.KtSourceElement import org.jetbrains.kotlin.fir.FirFileAnnotationsContainer import org.jetbrains.kotlin.fir.FirModuleData import org.jetbrains.kotlin.fir.declarations.FirResolvePhase +import org.jetbrains.kotlin.fir.declarations.FirResolveState +import org.jetbrains.kotlin.fir.declarations.asResolveState import org.jetbrains.kotlin.fir.expressions.FirAnnotation import org.jetbrains.kotlin.fir.symbols.impl.FirFileSymbol import org.jetbrains.kotlin.fir.visitors.* import org.jetbrains.kotlin.fir.MutableOrEmptyList import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess /* * This file was generated automatically @@ -24,12 +27,16 @@ import org.jetbrains.kotlin.fir.builder.toMutableOrEmpty internal class FirFileAnnotationsContainerImpl( override val source: KtSourceElement?, - @Volatile - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val moduleData: FirModuleData, override var annotations: MutableOrEmptyList, override val containingFileSymbol: FirFileSymbol, ) : FirFileAnnotationsContainer() { + init { + @OptIn(ResolveStateAccess::class) + resolveState = resolvePhase.asResolveState() + } + override fun acceptChildren(visitor: FirVisitor, data: D) { annotations.forEach { it.accept(visitor, data) } } @@ -44,10 +51,6 @@ internal class FirFileAnnotationsContainerImpl( return this } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceAnnotations(newAnnotations: List) { annotations = newAnnotations.toMutableOrEmpty() } diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirDefaultVisitor.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirDefaultVisitor.kt index d0088d9bd7a..ed0e994d019 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirDefaultVisitor.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirDefaultVisitor.kt @@ -19,7 +19,7 @@ import org.jetbrains.kotlin.fir.expressions.FirStatement import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.expressions.FirLazyExpression import org.jetbrains.kotlin.fir.declarations.FirContextReceiver -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirFileAnnotationsContainer import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRefsOwner diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirDefaultVisitorVoid.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirDefaultVisitorVoid.kt index 1f5835b9f0c..8e49efc8ccf 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirDefaultVisitorVoid.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirDefaultVisitorVoid.kt @@ -19,7 +19,7 @@ import org.jetbrains.kotlin.fir.expressions.FirStatement import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.expressions.FirLazyExpression import org.jetbrains.kotlin.fir.declarations.FirContextReceiver -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirFileAnnotationsContainer import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRefsOwner diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirTransformer.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirTransformer.kt index 080976ed7e5..baf15987389 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirTransformer.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirTransformer.kt @@ -19,7 +19,7 @@ import org.jetbrains.kotlin.fir.expressions.FirStatement import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.expressions.FirLazyExpression import org.jetbrains.kotlin.fir.declarations.FirContextReceiver -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirFileAnnotationsContainer import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRefsOwner @@ -215,8 +215,8 @@ abstract class FirTransformer : FirVisitor() { return transformElement(contextReceiver, data) } - open fun transformElementWithResolvePhase(elementWithResolvePhase: FirElementWithResolvePhase, data: D): FirElementWithResolvePhase { - return transformElement(elementWithResolvePhase, data) + open fun transformElementWithResolveState(elementWithResolveState: FirElementWithResolveState, data: D): FirElementWithResolveState { + return transformElement(elementWithResolveState, data) } open fun transformFileAnnotationsContainer(fileAnnotationsContainer: FirFileAnnotationsContainer, data: D): FirFileAnnotationsContainer { @@ -807,8 +807,8 @@ abstract class FirTransformer : FirVisitor() { return transformContextReceiver(contextReceiver, data) } - final override fun visitElementWithResolvePhase(elementWithResolvePhase: FirElementWithResolvePhase, data: D): FirElementWithResolvePhase { - return transformElementWithResolvePhase(elementWithResolvePhase, data) + final override fun visitElementWithResolveState(elementWithResolveState: FirElementWithResolveState, data: D): FirElementWithResolveState { + return transformElementWithResolveState(elementWithResolveState, data) } final override fun visitFileAnnotationsContainer(fileAnnotationsContainer: FirFileAnnotationsContainer, data: D): FirFileAnnotationsContainer { diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirVisitor.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirVisitor.kt index c42b6f78e31..2a6930425ad 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirVisitor.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirVisitor.kt @@ -19,7 +19,7 @@ import org.jetbrains.kotlin.fir.expressions.FirStatement import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.expressions.FirLazyExpression import org.jetbrains.kotlin.fir.declarations.FirContextReceiver -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirFileAnnotationsContainer import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRefsOwner @@ -188,7 +188,7 @@ abstract class FirVisitor { open fun visitContextReceiver(contextReceiver: FirContextReceiver, data: D): R = visitElement(contextReceiver, data) - open fun visitElementWithResolvePhase(elementWithResolvePhase: FirElementWithResolvePhase, data: D): R = visitElement(elementWithResolvePhase, data) + open fun visitElementWithResolveState(elementWithResolveState: FirElementWithResolveState, data: D): R = visitElement(elementWithResolveState, data) open fun visitFileAnnotationsContainer(fileAnnotationsContainer: FirFileAnnotationsContainer, data: D): R = visitElement(fileAnnotationsContainer, data) diff --git a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirVisitorVoid.kt b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirVisitorVoid.kt index 55794952b27..4dfa8b8aea3 100644 --- a/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirVisitorVoid.kt +++ b/compiler/fir/tree/gen/org/jetbrains/kotlin/fir/visitors/FirVisitorVoid.kt @@ -19,7 +19,7 @@ import org.jetbrains.kotlin.fir.expressions.FirStatement import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.expressions.FirLazyExpression import org.jetbrains.kotlin.fir.declarations.FirContextReceiver -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState import org.jetbrains.kotlin.fir.FirFileAnnotationsContainer import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.declarations.FirTypeParameterRefsOwner @@ -214,8 +214,8 @@ abstract class FirVisitorVoid : FirVisitor() { visitElement(contextReceiver) } - open fun visitElementWithResolvePhase(elementWithResolvePhase: FirElementWithResolvePhase) { - visitElement(elementWithResolvePhase) + open fun visitElementWithResolveState(elementWithResolveState: FirElementWithResolveState) { + visitElement(elementWithResolveState) } open fun visitFileAnnotationsContainer(fileAnnotationsContainer: FirFileAnnotationsContainer) { @@ -806,8 +806,8 @@ abstract class FirVisitorVoid : FirVisitor() { visitContextReceiver(contextReceiver) } - final override fun visitElementWithResolvePhase(elementWithResolvePhase: FirElementWithResolvePhase, data: Nothing?) { - visitElementWithResolvePhase(elementWithResolvePhase) + final override fun visitElementWithResolveState(elementWithResolveState: FirElementWithResolveState, data: Nothing?) { + visitElementWithResolveState(elementWithResolveState) } final override fun visitFileAnnotationsContainer(fileAnnotationsContainer: FirFileAnnotationsContainer, data: Nothing?) { diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/FirResolvePhase.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/FirResolvePhase.kt index edc379e3daa..21b7d12e216 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/FirResolvePhase.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/FirResolvePhase.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -31,6 +31,7 @@ enum class FirResolvePhase(val noProcessor: Boolean = false) { } val next: FirResolvePhase get() = values()[ordinal + 1] + val previous: FirResolvePhase get() = values()[ordinal - 1] companion object { // Short-cut diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/FirResolveState.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/FirResolveState.kt new file mode 100644 index 00000000000..add4c55b8fb --- /dev/null +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/FirResolveState.kt @@ -0,0 +1,112 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.fir.declarations + +import java.util.concurrent.CountDownLatch +import org.jetbrains.kotlin.fir.FirElementWithResolveState +import org.jetbrains.kotlin.fir.declarations.synthetic.FirSyntheticPropertyAccessor + +/** + * The current lazy resolve state of some [org.jetbrains.kotlin.fir.FirElementWithResolveState]. + */ +sealed class FirResolveState { + /** + * The [FirResolvePhase] in which the [org.jetbrains.kotlin.fir.FirElementWithResolveState] is definitely resolved to + * + * Two cases is possible here: + * - the [org.jetbrains.kotlin.fir.FirElementWithResolveState] is resolved to [resolvePhase] and no thread currently is resolving it + * - the [org.jetbrains.kotlin.fir.FirElementWithResolveState] being is resolved to `resolvePhase + 1`, so the current state is [resolvePhase] + + */ + abstract val resolvePhase: FirResolvePhase + + abstract override fun toString(): String +} + +@RequiresOptIn +annotation class ResolveStateAccess + +/** + * The [FirResolveState] representing the lazy resolve state of some [org.jetbrains.kotlin.fir.FirElementWithResolveState] in a case where no thread currently is resolving it + * + * @see FirResolveState + */ +class FirResolvedToPhaseState private constructor( + override val resolvePhase: FirResolvePhase +) : FirResolveState() { + companion object { + private val phases: List = FirResolvePhase.values().map(::FirResolvedToPhaseState) + + operator fun invoke(phase: FirResolvePhase) = phases[phase.ordinal] + } + + override fun toString(): String = "ResolvedTo($resolvePhase)" +} + +fun FirResolvePhase.asResolveState(): FirResolvedToPhaseState = FirResolvedToPhaseState(this) + +@OptIn(ResolveStateAccess::class) +val FirElementWithResolveState.resolvePhase: FirResolvePhase + get() = if (this is FirSyntheticPropertyAccessor) { + delegate.resolvePhase + } else { + resolveState.resolvePhase + } + +/** + * The [FirResolveState] representing the lazy resolve state of some [org.jetbrains.kotlin.fir.FirElementWithResolveState] in a case when some thread is resolving it from [resolvePhase] to [resolvingTo]. + * + * @see FirResolveState + */ +sealed class FirInProcessOfResolvingToPhaseState : FirResolveState() { + abstract val resolvingTo: FirResolvePhase + override val resolvePhase: FirResolvePhase get() = resolvingTo.previous +} + +/** + * The [FirResolveState] representing the lazy resolve state of some [org.jetbrains.kotlin.fir.FirElementWithResolveState] in a case when some thread is resolving it from [resolvePhase] to [resolvingTo] and no other thread is awaiting the resolution results. + * + * @see FirResolveState + */ +class FirInProcessOfResolvingToPhaseStateWithoutBarrier private constructor( + override val resolvingTo: FirResolvePhase +) : FirInProcessOfResolvingToPhaseState() { + companion object { + private val phases: List = FirResolvePhase.values() + .drop(1) // drop FirResolvePhase.RAW_FIR phase + .map(::FirInProcessOfResolvingToPhaseStateWithoutBarrier) + + operator fun invoke(phase: FirResolvePhase): FirInProcessOfResolvingToPhaseState { + require(phase != FirResolvePhase.RAW_FIR) { + "Cannot resolve to ${FirResolvePhase.RAW_FIR} as it's a first phase" + } + + return phases[phase.ordinal - 1] + } + } + + override fun toString(): String = "ResolvingTo($resolvingTo)" +} + +/** + * The [FirResolveState] representing the lazy resolve state of some [org.jetbrains.kotlin.fir.FirElementWithResolveState] in a case when some thread is resolving it from [resolvePhase] to [resolvingTo] and other threads are awaiting the resolution results. + * + * Some other threads are waiting on a [barrier] + * + * @see FirResolveState + */ +class FirInProcessOfResolvingToPhaseStateWithBarrier( + override val resolvingTo: FirResolvePhase, + val barrier: CountDownLatch, +) : FirInProcessOfResolvingToPhaseState() { + init { + require(resolvingTo != FirResolvePhase.RAW_FIR) { + "Cannot resolve to ${FirResolvePhase.RAW_FIR} as it's a first phase" + } + } + + override fun toString(): String = "ResolvingToWithBarrier($resolvingTo)" +} \ No newline at end of file diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticProperty.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticProperty.kt index 1dee7daafa0..44ca5e835f0 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticProperty.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticProperty.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -26,7 +26,7 @@ class FirSyntheticProperty( override val isVar: Boolean, override val symbol: FirSyntheticPropertySymbol, override val status: FirDeclarationStatus, - override var resolvePhase: FirResolvePhase, + resolvePhase: FirResolvePhase, override val getter: FirSyntheticPropertyAccessor, override val setter: FirSyntheticPropertyAccessor? = null, override val backingField: FirBackingField? = null, @@ -36,6 +36,11 @@ class FirSyntheticProperty( symbol.bind(this) } + init { + @OptIn(ResolveStateAccess::class) + this.resolveState = resolvePhase.asResolveState() + } + override val returnTypeRef: FirTypeRef get() = getter.returnTypeRef @@ -142,10 +147,6 @@ class FirSyntheticProperty( notSupported() } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - resolvePhase = newResolvePhase - } - override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) { notSupported() } diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticPropertyAccessor.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticPropertyAccessor.kt index 2ebb8efda32..cd46e809811 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticPropertyAccessor.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticPropertyAccessor.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -39,9 +39,6 @@ class FirSyntheticPropertyAccessor( override val returnTypeRef: FirTypeRef get() = delegate.returnTypeRef - override val resolvePhase: FirResolvePhase - get() = delegate.resolvePhase - override val status: FirDeclarationStatus get() = delegate.status @@ -50,7 +47,7 @@ class FirSyntheticPropertyAccessor( override val receiverParameter: FirReceiverParameter? get() = null - + override val deprecationsProvider: DeprecationsProvider get() = delegate.deprecationsProvider @@ -131,10 +128,6 @@ class FirSyntheticPropertyAccessor( notSupported() } - override fun replaceResolvePhase(newResolvePhase: FirResolvePhase) { - notSupported() - } - override fun replaceReturnTypeRef(newReturnTypeRef: FirTypeRef) { notSupported() } diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticPropertyBuilder.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticPropertyBuilder.kt index ab4d49b2b56..6696d488081 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticPropertyBuilder.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/synthetic/FirSyntheticPropertyBuilder.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -9,6 +9,7 @@ import org.jetbrains.kotlin.fir.FirModuleData import org.jetbrains.kotlin.fir.declarations.DeprecationsProvider import org.jetbrains.kotlin.fir.declarations.FirDeclarationStatus import org.jetbrains.kotlin.fir.declarations.FirSimpleFunction +import org.jetbrains.kotlin.fir.declarations.resolvePhase import org.jetbrains.kotlin.fir.symbols.impl.FirSyntheticPropertySymbol import org.jetbrains.kotlin.name.Name diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/renderer/FirResolvePhaseRenderer.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/renderer/FirResolvePhaseRenderer.kt index 861d1df4aae..2175eca903e 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/renderer/FirResolvePhaseRenderer.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/renderer/FirResolvePhaseRenderer.kt @@ -1,17 +1,19 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.fir.renderer -import org.jetbrains.kotlin.fir.FirElementWithResolvePhase +import org.jetbrains.kotlin.fir.FirElementWithResolveState +import org.jetbrains.kotlin.fir.declarations.ResolveStateAccess class FirResolvePhaseRenderer { internal lateinit var components: FirRendererComponents private val printer get() = components.printer - fun render(element: FirElementWithResolvePhase) { - printer.print("[${element.resolvePhase}] ") + fun render(element: FirElementWithResolveState) { + @OptIn(ResolveStateAccess::class) + printer.print("[${element.resolveState}] ") } } \ No newline at end of file diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/BuilderConfigurator.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/BuilderConfigurator.kt index 3e4f5d09da0..6a0ca9e30b8 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/BuilderConfigurator.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/BuilderConfigurator.kt @@ -7,6 +7,7 @@ package org.jetbrains.kotlin.fir.tree.generator import org.jetbrains.kotlin.fir.tree.generator.context.AbstractBuilderConfigurator import org.jetbrains.kotlin.fir.tree.generator.model.* +import org.jetbrains.kotlin.fir.tree.generator.printer.invisibleField import org.jetbrains.kotlin.fir.tree.generator.util.traverseParents object BuilderConfigurator : AbstractBuilderConfigurator(FirTreeBuilder) { @@ -34,7 +35,7 @@ object BuilderConfigurator : AbstractBuilderConfigurator(FirTree val classBuilder by builder { parents += declarationBuilder parents += annotationContainerBuilder - fields from klass without listOf("symbol", "resolvePhase", "controlFlowGraphReference") + fields from klass without listOf("symbol", "resolvePhase", "resolveState", "controlFlowGraphReference") } builder(regularClass) { @@ -63,6 +64,7 @@ object BuilderConfigurator : AbstractBuilderConfigurator(FirTree fields from function without listOf( "symbol", "resolvePhase", + "resolveState", "controlFlowGraphReference", "receiverParameter", "typeParameters", @@ -439,6 +441,14 @@ object BuilderConfigurator : AbstractBuilderConfigurator(FirTree default(it, "FirResolvePhase.RAW_FIR") } + configureFieldInAllLeafBuilders( + field = "resolveState", + fieldPredicate = { it.invisibleField }, + builderPredicate = { it.wantsCopy }, + ) { + useTypes(resolvePhaseExtensionImport) + } + configureFieldInAllLeafBuilders( field = "containerSource" ) { diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/FirTreeBuilder.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/FirTreeBuilder.kt index 22c7021aa36..acc903087f5 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/FirTreeBuilder.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/FirTreeBuilder.kt @@ -30,9 +30,9 @@ object FirTreeBuilder : AbstractFirTreeBuilder() { val contextReceiver by element(Declaration) - val elementWithResolvePhase by element(Other) - val fileAnnotationsContainer by element(Other, elementWithResolvePhase, annotationContainer) - val declaration by sealedElement(Declaration, elementWithResolvePhase, annotationContainer) + val elementWithResolveState by element(Other) + val fileAnnotationsContainer by element(Other, elementWithResolveState, annotationContainer) + val declaration by sealedElement(Declaration, elementWithResolveState, annotationContainer) val typeParameterRefsOwner by sealedElement(Declaration) val typeParametersOwner by sealedElement(Declaration, typeParameterRefsOwner) val memberDeclaration by sealedElement(Declaration, declaration, typeParameterRefsOwner) diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/ImplementationConfigurator.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/ImplementationConfigurator.kt index ad1891095a1..c3ddf3472d9 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/ImplementationConfigurator.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/ImplementationConfigurator.kt @@ -355,7 +355,6 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator() } impl(anonymousFunction) { - default("resolvePhase", "FirResolvePhase.DECLARATIONS") } noImpl(anonymousFunctionExpression) diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/NodeConfigurator.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/NodeConfigurator.kt index ff7f4706de0..189731f4e08 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/NodeConfigurator.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/NodeConfigurator.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -75,9 +75,15 @@ object NodeConfigurator : AbstractFieldConfigurator(FirTreeBuild +field("labelNameFromTypeRef", nameType, nullable = true) } + elementWithResolveState.configure { + +field("resolvePhase", resolvePhaseType).apply { isParameter = true; } + +field("resolveState", resolveStateType).apply { + isMutable = true; isVolatile = true; isFinal = true; isLateinit = true + customInitializationCall = "resolvePhase.asResolveState()" + arbitraryImportables += phaseAsResolveStateExtentionImport + optInAnnotation = resolveStateAccessImport + } - elementWithResolvePhase.configure { - +field("resolvePhase", resolvePhaseType, withReplace = true).apply { isMutable = true; isVolatile = true } +field("moduleData", firModuleDataType) shouldBeAbstractClass() } @@ -119,11 +125,10 @@ object NodeConfigurator : AbstractFieldConfigurator(FirTreeBuild errorFunction.configure { +symbol("FirErrorFunctionSymbol") - +typeParameters } memberDeclaration.configure { - +status.withTransform() + +status.withTransform().withReplace() } expression.configure { diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/Types.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/Types.kt index f8fba2c83a2..b2101dfdd13 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/Types.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/Types.kt @@ -63,6 +63,7 @@ val implicitNothingTypeRefType = generatedType("types.impl", "FirImplicitNothing val implicitStringTypeRefType = generatedType("types.impl", "FirImplicitStringTypeRef", firType = true) val implicitUnitTypeRefType = generatedType("types.impl", "FirImplicitUnitTypeRef", firType = true) val resolvePhaseType = type("fir.declarations", "FirResolvePhase") +val resolveStateType = type("fir.declarations", "FirResolveState") val propertyBodyResolveStateType = type("fir.declarations", "FirPropertyBodyResolveState") val stubReferenceType = generatedType("references.impl", "FirStubReference", firType = true) diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/importables.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/importables.kt new file mode 100644 index 00000000000..0fc115cf5fc --- /dev/null +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/importables.kt @@ -0,0 +1,12 @@ +/* + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.jetbrains.kotlin.fir.tree.generator + +import org.jetbrains.kotlin.fir.tree.generator.model.ArbitraryImportable + +val phaseAsResolveStateExtentionImport = ArbitraryImportable("org.jetbrains.kotlin.fir.declarations", "asResolveState") +val resolvePhaseExtensionImport = ArbitraryImportable("org.jetbrains.kotlin.fir.declarations", "resolvePhase") +val resolveStateAccessImport = ArbitraryImportable("org.jetbrains.kotlin.fir.declarations", "ResolveStateAccess") \ No newline at end of file diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/model/Field.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/model/Field.kt index 1c8dc61f1bf..d685415263d 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/model/Field.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/model/Field.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -12,6 +12,9 @@ sealed class Field : Importable { open val arguments = mutableListOf() abstract val nullable: Boolean abstract var isVolatile: Boolean + abstract var isFinal: Boolean + abstract var isLateinit: Boolean + abstract var isParameter: Boolean open var withReplace: Boolean = false abstract val isFirType: Boolean @@ -19,6 +22,9 @@ sealed class Field : Importable { open var needsSeparateTransform: Boolean = false var parentHasSeparateTransform: Boolean = true open var needTransformInOtherChildren: Boolean = false + open var customInitializationCall: String? = null + open val arbitraryImportables: MutableList = mutableListOf() + open var optInAnnotation: ArbitraryImportable? = null open val defaultValueInImplementation: String? get() = null abstract var isMutable: Boolean @@ -46,7 +52,10 @@ sealed class Field : Importable { copy.needTransformInOtherChildren = needTransformInOtherChildren copy.isMutable = isMutable copy.overridenTypes += overridenTypes + copy.arbitraryImportables += arbitraryImportables copy.useNullableForReplace = useNullableForReplace + copy.customInitializationCall = customInitializationCall + copy.optInAnnotation = optInAnnotation } copy.fromParent = fromParent copy.parentHasSeparateTransform = parentHasSeparateTransform @@ -97,6 +106,26 @@ class FieldWithDefault(val origin: Field) : Field() { override val fullQualifiedName: String? get() = origin.fullQualifiedName + override var isFinal: Boolean + get() = origin.isFinal + set(_) {} + + override var isLateinit: Boolean + get() = origin.isLateinit + set(_) {} + + override var isParameter: Boolean + get() = origin.isParameter + set(_) {} + + override var customInitializationCall: String? + get() = origin.customInitializationCall + set(_) {} + + override var optInAnnotation: ArbitraryImportable? + get() = origin.optInAnnotation + set(_) {} + override var defaultValueInImplementation: String? = origin.defaultValueInImplementation var defaultValueInBuilder: String? = null override var isMutable: Boolean = origin.isMutable @@ -109,6 +138,9 @@ class FieldWithDefault(val origin: Field) : Field() { override val overridenTypes: MutableSet get() = origin.overridenTypes + override val arbitraryImportables: MutableList + get() = origin.arbitraryImportables + override var useNullableForReplace: Boolean get() = origin.useNullableForReplace set(_) {} @@ -131,7 +163,10 @@ class SimpleField( val customType: Importable? = null, override val nullable: Boolean, override var withReplace: Boolean, - override var isVolatile: Boolean = false + override var isVolatile: Boolean = false, + override var isFinal: Boolean = false, + override var isLateinit: Boolean = false, + override var isParameter: Boolean = false, ) : Field() { override val isFirType: Boolean = false override val fullQualifiedName: String? @@ -142,26 +177,32 @@ class SimpleField( override fun internalCopy(): Field { return SimpleField( - name, - type, - packageName, - customType, - nullable, - withReplace, - isVolatile + name = name, + type = type, + packageName = packageName, + customType = customType, + nullable = nullable, + withReplace = withReplace, + isVolatile = isVolatile, + isFinal = isFinal, + isLateinit = isLateinit, + isParameter = isParameter, ).apply { withBindThis = this@SimpleField.withBindThis } } fun replaceType(newType: Type) = SimpleField( - name, - newType.type, - newType.packageName, - customType, - nullable, - withReplace, - isVolatile + name = name, + type = newType.type, + packageName = newType.packageName, + customType = customType, + nullable = nullable, + withReplace = withReplace, + isVolatile = isVolatile, + isFinal = isFinal, + isLateinit = isLateinit, + isParameter = isParameter ).also { it.withBindThis = withBindThis updateFieldsInCopy(it) @@ -172,7 +213,7 @@ class FirField( override val name: String, val element: AbstractElement, override val nullable: Boolean, - override var withReplace: Boolean + override var withReplace: Boolean, ) : Field() { init { if (element is ElementWithArguments) { @@ -182,11 +223,14 @@ class FirField( override val type: String get() = element.type override var isVolatile: Boolean = false + override var isFinal: Boolean = false override val packageName: String? get() = element.packageName override val isFirType: Boolean = true override var isMutable: Boolean = true override var isMutableOrEmpty: Boolean = false + override var isLateinit: Boolean = false + override var isParameter: Boolean = false override fun internalCopy(): Field { return FirField( @@ -217,8 +261,11 @@ class FieldList( get() = false override var isVolatile: Boolean = false + override var isFinal: Boolean = false override var isMutable: Boolean = true override var isMutableOrEmpty: Boolean = useMutableOrEmpty + override var isLateinit: Boolean = false + override var isParameter: Boolean = false override fun internalCopy(): Field { return FieldList( diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/builder.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/builder.kt index 86f33117c57..4069e06a08f 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/builder.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/builder.kt @@ -82,6 +82,7 @@ private fun SmartPrinter.printBuilder(builder: Builder) { println("return ${builder.implementation.type}(") withIndent { for (field in builder.allFields) { + if (field.invisibleField) continue val name = field.name print(name) if (field.isMutableOrEmpty) print(".toMutableOrEmpty()") @@ -127,19 +128,21 @@ private fun SmartPrinter.printBuilder(builder: Builder) { } } +internal val Field.invisibleField: Boolean get() = customInitializationCall != null private val String.nullable: String get() = if (endsWith("?")) this else "$this?" -private fun FieldWithDefault.needBackingField(fieldIsUseless: Boolean) = (!nullable || notNull) && origin !is FieldList && if (fieldIsUseless) { - defaultValueInImplementation == null -} else { - defaultValueInBuilder == null -} +private fun FieldWithDefault.needBackingField(fieldIsUseless: Boolean) = + (!nullable || notNull) && origin !is FieldList && if (fieldIsUseless) { + defaultValueInImplementation == null + } else { + defaultValueInBuilder == null + } private fun FieldWithDefault.needNotNullDelegate(fieldIsUseless: Boolean) = needBackingField(fieldIsUseless) && (type == "Boolean" || type == "Int") private fun SmartPrinter.printFieldInBuilder(field: FieldWithDefault, builder: Builder, fieldIsUseless: Boolean): Pair { - if (field.withGetter && !fieldIsUseless) return false to false + if (field.withGetter && !fieldIsUseless || field.invisibleField) return false to false if (field.origin is FieldList) { printFieldListInBuilder(field.origin, builder, fieldIsUseless) return true to false @@ -303,6 +306,7 @@ private fun SmartPrinter.printDslBuildCopyFunction( println("val copyBuilder = $builderType()") for (field in builder.allFields) { when { + field.invisibleField -> {} field.origin is FieldList -> println("copyBuilder.${field.name}.addAll(original.${field.name})") field.type == declarationAttributesType.type -> println("copyBuilder.${field.name} = original.${field.name}.copy()") field.notNull -> println("original.${field.name}?.let { copyBuilder.${field.name} = it }") diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/element.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/element.kt index e60ba698360..fd229a1ce32 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/element.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/element.kt @@ -1,18 +1,19 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.fir.tree.generator.printer import org.jetbrains.kotlin.fir.tree.generator.context.AbstractFirTreeBuilder -import org.jetbrains.kotlin.fir.tree.generator.model.* +import org.jetbrains.kotlin.fir.tree.generator.model.Element +import org.jetbrains.kotlin.fir.tree.generator.model.Field import org.jetbrains.kotlin.fir.tree.generator.model.Implementation.Kind +import org.jetbrains.kotlin.fir.tree.generator.model.Importable import org.jetbrains.kotlin.fir.tree.generator.pureAbstractElementType import org.jetbrains.kotlin.fir.tree.generator.util.get import org.jetbrains.kotlin.util.SmartPrinter import org.jetbrains.kotlin.util.withIndent - import java.io.File fun Element.generateCode(generationPath: File): GeneratedFile { @@ -76,9 +77,12 @@ fun SmartPrinter.printElement(element: Element) { print(multipleUpperBoundsList()) println("{") withIndent { - allFields.forEach { - abstract() - printField(it, isImplementation = false, override = it.fromParent, end = "") + allFields.forEach { field -> + if (field.isFinal && field.fromParent || field.isParameter) return@forEach + if (!field.isFinal) { + abstract() + } + printField(field, isImplementation = false, override = field.fromParent, end = "") } if (allFields.isNotEmpty()) { println() diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/field.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/field.kt index 44eebbe9e32..d77d6a9c0f6 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/field.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/field.kt @@ -1,26 +1,33 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.fir.tree.generator.printer import org.jetbrains.kotlin.fir.tree.generator.model.Field -import org.jetbrains.kotlin.fir.tree.generator.model.SimpleField import org.jetbrains.kotlin.util.SmartPrinter fun SmartPrinter.printField(field: Field, isImplementation: Boolean, override: Boolean, end: String, notNull: Boolean = false) { - if (isImplementation && !field.isVal && field.isVolatile) { + if (!field.isVal && field.isVolatile) { println("@Volatile") } + + field.optInAnnotation?.let { + println("@${it.type}") + } + if (override) { print("override ") } - if (!isImplementation || field.isVal) { - print("val") - } else { + if (field.isLateinit) { + print("lateinit ") + } + if (isImplementation && !field.isVal || field.isFinal && field.isMutable) { print("var") + } else { + print("val") } val type = if (isImplementation) field.getMutableType(notNull = notNull) else field.getTypeWithArguments(notNull = notNull) println(" ${field.name}: $type$end") diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/implementation.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/implementation.kt index 90f968a81d6..a76a0f014f0 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/implementation.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/implementation.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -10,7 +10,6 @@ import org.jetbrains.kotlin.fir.tree.generator.model.Implementation.Kind import org.jetbrains.kotlin.fir.tree.generator.pureAbstractElementType import org.jetbrains.kotlin.util.SmartPrinter import org.jetbrains.kotlin.util.withIndent - import java.io.File fun Implementation.generateCode(generationPath: File): GeneratedFile { @@ -75,9 +74,12 @@ fun SmartPrinter.printImplementation(implementation: Implementation) { } println("(") withIndent { - fieldsWithoutDefault.forEachIndexed { _, field -> - printField(field, isImplementation = true, override = true, end = ",", notNull = field.notNull) + if (field.isParameter) { + println("${field.name}: ${field.typeWithArguments},") + } else if (!field.isFinal) { + printField(field, isImplementation = true, override = true, end = ",", notNull = field.notNull) + } } } print(")") @@ -106,7 +108,7 @@ fun SmartPrinter.printImplementation(implementation: Implementation) { } - element.allFields.filter { + val bindingCalls = element.allFields.filter { it.withBindThis && it.type.contains("Symbol") && it !is FieldList && it.name != "companionObjectSymbol" }.takeIf { it.isNotEmpty() && !isInterface && !isAbstract && @@ -114,12 +116,23 @@ fun SmartPrinter.printImplementation(implementation: Implementation) { && !element.type.contains("ResolvedQualifier") && !element.type.endsWith("Ref") && !element.type.endsWith("AnnotationsContainer") - }?.let { symbolFields -> + }.orEmpty() + + val customCalls = fieldsWithoutDefault.filter { it.customInitializationCall != null } + if (bindingCalls.isNotEmpty() || customCalls.isNotEmpty()) { println("init {") - for (symbolField in symbolFields) { - withIndent { + withIndent { + for (symbolField in bindingCalls) { println("${symbolField.name}${symbolField.call()}bind(this)") } + + for (customCall in customCalls) { + customCall.optInAnnotation?.let { + println("@OptIn(${it.type}::class)") + } + + println("${customCall.name} = ${customCall.customInitializationCall}") + } } println("}") println() diff --git a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/utils.kt b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/utils.kt index 63b761f8f4e..10c94f315a5 100644 --- a/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/utils.kt +++ b/compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/utils.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -11,6 +11,7 @@ import org.jetbrains.kotlin.fir.tree.generator.model.* import org.jetbrains.kotlin.fir.tree.generator.model.Implementation.Kind import org.jetbrains.kotlin.fir.tree.generator.pureAbstractElementType import java.io.File +import org.jetbrains.kotlin.utils.addToStdlib.ifNotEmpty class GeneratedFile(val file: File, val newText: String) @@ -27,9 +28,19 @@ fun Builder.collectImports(): List { ImportKind.Builder, ) + implementation.fullQualifiedName!! + usedTypes.mapNotNull { it.fullQualifiedName } + builderDsl + "kotlin.contracts.*" is IntermediateBuilder -> { - val fqns = parents + usedTypes.mapNotNull { it.fullQualifiedName } + allFields.mapNotNull { it.fullQualifiedName } + allFields.flatMap { - it.arguments.mapNotNull { it.fullQualifiedName } - } + (materializedElement?.fullQualifiedName ?: throw IllegalStateException(type)) + builderDsl + val fqns = buildList { + addAll(parents) + usedTypes.mapNotNullTo(this) { it.fullQualifiedName } + for (field in allFields) { + if (field.invisibleField) continue + field.fullQualifiedName?.let(this::add) + field.arguments.mapNotNullTo(this) { it.fullQualifiedName } + } + + add(materializedElement?.fullQualifiedName ?: throw IllegalStateException(type)) + add(builderDsl) + } + fqns.filterRedundantImports(packageName, ImportKind.Builder) } }.sorted() @@ -64,22 +75,26 @@ fun Element.collectImports(): List { private fun Element.collectImportsInternal(base: List, kind: ImportKind): List { val fqns = base + allFields.mapNotNull { it.fullQualifiedName } + - allFields.flatMap { it.overridenTypes.mapNotNull { it.fullQualifiedName } } + + allFields.flatMap { it.overridenTypes.mapNotNull { it.fullQualifiedName } + it.arbitraryImportables.mapNotNull { it.fullQualifiedName } } + allFields.flatMap { it.arguments.mapNotNull { it.fullQualifiedName } } + typeArguments.flatMap { it.upperBounds.mapNotNull { it.fullQualifiedName } } - val result = fqns.filterRedundantImports(packageName, kind) + - if (allFields.any { it is FieldList && it.isMutableOrEmpty }) { - when (kind) { - ImportKind.Implementation -> listOf( - "org.jetbrains.kotlin.fir.MutableOrEmptyList", - "org.jetbrains.kotlin.fir.builder.toMutableOrEmpty" - ) - ImportKind.Builder -> listOf("org.jetbrains.kotlin.fir.builder.toMutableOrEmpty") - else -> emptyList() - } - } else { - emptyList() - } + val result = fqns.filterRedundantImports(packageName, kind).toMutableList() + + if (allFields.any { it is FieldList && it.isMutableOrEmpty }) { + result += when (kind) { + ImportKind.Implementation -> listOf( + "org.jetbrains.kotlin.fir.MutableOrEmptyList", + "org.jetbrains.kotlin.fir.builder.toMutableOrEmpty" + ) + ImportKind.Builder -> listOf("org.jetbrains.kotlin.fir.builder.toMutableOrEmpty") + else -> emptyList() + } + } + + allFields.mapNotNull { it.optInAnnotation?.fullQualifiedName }.distinct().ifNotEmpty { + result += this + } + if (allFields.any { it.name == "source" && it.withReplace }) { return (result + "org.jetbrains.kotlin.fir.FirImplementationDetail").distinct() }