FIR: set resolvePhase to BODY_RESOLVE in deserialized Kotlin declarations
This commit is contained in:
committed by
Simon Ogorodnik
parent
c7d6a79c25
commit
b8920114f8
+3
@@ -221,6 +221,7 @@ class FirMemberDeserializer(private val c: FirDeserializationContext) {
|
|||||||
session = c.session
|
session = c.session
|
||||||
origin = FirDeclarationOrigin.Library
|
origin = FirDeclarationOrigin.Library
|
||||||
this.returnTypeRef = returnTypeRef
|
this.returnTypeRef = returnTypeRef
|
||||||
|
resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES
|
||||||
isGetter = true
|
isGetter = true
|
||||||
status = FirResolvedDeclarationStatusImpl(visibility, modality)
|
status = FirResolvedDeclarationStatusImpl(visibility, modality)
|
||||||
annotations +=
|
annotations +=
|
||||||
@@ -245,6 +246,7 @@ class FirMemberDeserializer(private val c: FirDeserializationContext) {
|
|||||||
session = c.session
|
session = c.session
|
||||||
origin = FirDeclarationOrigin.Library
|
origin = FirDeclarationOrigin.Library
|
||||||
this.returnTypeRef = FirImplicitUnitTypeRef(source)
|
this.returnTypeRef = FirImplicitUnitTypeRef(source)
|
||||||
|
resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES
|
||||||
isGetter = false
|
isGetter = false
|
||||||
status = FirResolvedDeclarationStatusImpl(visibility, modality)
|
status = FirResolvedDeclarationStatusImpl(visibility, modality)
|
||||||
annotations +=
|
annotations +=
|
||||||
@@ -456,6 +458,7 @@ class FirMemberDeserializer(private val c: FirDeserializationContext) {
|
|||||||
returnTypeRef = proto.type(c.typeTable).toTypeRef(c)
|
returnTypeRef = proto.type(c.typeTable).toTypeRef(c)
|
||||||
this.name = name
|
this.name = name
|
||||||
symbol = FirVariableSymbol(name)
|
symbol = FirVariableSymbol(name)
|
||||||
|
resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES
|
||||||
defaultValue = defaultValue(flags)
|
defaultValue = defaultValue(flags)
|
||||||
if (addDefaultValue) {
|
if (addDefaultValue) {
|
||||||
defaultValue = buildExpressionStub()
|
defaultValue = buildExpressionStub()
|
||||||
|
|||||||
Reference in New Issue
Block a user