FIR: support lateinit properties
This commit is contained in:
@@ -163,6 +163,9 @@ class FirRenderer(builder: StringBuilder) : FirVisitorVoid() {
|
||||
if (memberDeclaration.isConst) {
|
||||
print("const ")
|
||||
}
|
||||
if (memberDeclaration.isLateInit) {
|
||||
print("lateinit ")
|
||||
}
|
||||
}
|
||||
|
||||
visitNamedDeclaration(memberDeclaration)
|
||||
|
||||
@@ -16,6 +16,8 @@ import org.jetbrains.kotlin.fir.visitors.FirVisitor
|
||||
interface FirProperty : @VisitedSupertype FirDeclaration, FirCallableMember, FirVariable {
|
||||
val isConst: Boolean
|
||||
|
||||
val isLateInit: Boolean
|
||||
|
||||
// Should it be nullable or have some default?
|
||||
val getter: FirPropertyAccessor
|
||||
|
||||
|
||||
+1
@@ -28,6 +28,7 @@ class FirMemberPropertyImpl(
|
||||
platformStatus: FirMemberPlatformStatus,
|
||||
isOverride: Boolean,
|
||||
override val isConst: Boolean,
|
||||
override val isLateInit: Boolean,
|
||||
receiverType: FirType?,
|
||||
returnType: FirType,
|
||||
override val isVar: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user