[minor] Fir2IrVisitor: reformat
This commit is contained in:
committed by
Space Team
parent
43a0e7ecbd
commit
51cd1b2d6f
@@ -152,8 +152,8 @@ class Fir2IrVisitor(
|
||||
}
|
||||
} else if (irParentEnumClass != null && initializer == null) {
|
||||
// a default-ish enum entry whose initializer would be a delegating constructor call
|
||||
val constructor =
|
||||
irParentEnumClass.defaultConstructor ?: error("Assuming that default constructor should exist and be converted at this point")
|
||||
val constructor = irParentEnumClass.defaultConstructor
|
||||
?: error("Assuming that default constructor should exist and be converted at this point")
|
||||
enumEntry.convertWithOffsets { startOffset, endOffset ->
|
||||
irEnumEntry.initializerExpression = irFactory.createExpressionBody(
|
||||
IrEnumConstructorCallImpl(
|
||||
@@ -217,7 +217,9 @@ class Fir2IrVisitor(
|
||||
return visitAnonymousObject(anonymousObjectExpression.anonymousObject, data)
|
||||
}
|
||||
|
||||
override fun visitAnonymousObject(anonymousObject: FirAnonymousObject, data: Any?): IrElement = whileAnalysing(session, anonymousObject) {
|
||||
override fun visitAnonymousObject(anonymousObject: FirAnonymousObject, data: Any?): IrElement = whileAnalysing(
|
||||
session, anonymousObject
|
||||
) {
|
||||
val irParent = conversionScope.parentFromStack()
|
||||
// NB: for implicit types it is possible that anonymous object is already cached
|
||||
val irAnonymousObject = classifierStorage.getCachedIrClass(anonymousObject)?.apply { this.parent = irParent }
|
||||
@@ -1288,7 +1290,9 @@ class Fir2IrVisitor(
|
||||
}
|
||||
}
|
||||
|
||||
override fun visitCheckNotNullCall(checkNotNullCall: FirCheckNotNullCall, data: Any?): IrElement = whileAnalysing(session, checkNotNullCall) {
|
||||
override fun visitCheckNotNullCall(checkNotNullCall: FirCheckNotNullCall, data: Any?): IrElement = whileAnalysing(
|
||||
session, checkNotNullCall
|
||||
) {
|
||||
return checkNotNullCall.convertWithOffsets { startOffset, endOffset ->
|
||||
IrCallImpl(
|
||||
startOffset, endOffset,
|
||||
|
||||
Reference in New Issue
Block a user