Apply "unnamed boolean literal" to idea & J2K + other style fixes
This commit is contained in:
+1
-1
@@ -300,7 +300,7 @@ class Fir2IrDeclarationStorage(
|
||||
startOffset, endOffset, origin, symbol,
|
||||
constructor.name, constructor.visibility,
|
||||
constructor.returnTypeRef.toIrType(session, this),
|
||||
false, false, isPrimary
|
||||
isInline = false, isExternal = false, isPrimary = isPrimary
|
||||
).bindAndDeclareParameters(constructor, descriptor, setParent, shouldLeaveScope)
|
||||
}
|
||||
}
|
||||
|
||||
+22
-22
@@ -167,18 +167,18 @@ class FirMemberDeserializer(private val c: FirDeserializationContext) {
|
||||
callableName,
|
||||
ProtoEnumFlags.visibility(Flags.VISIBILITY.get(flags)),
|
||||
ProtoEnumFlags.modality(Flags.MODALITY.get(flags)),
|
||||
Flags.IS_EXPECT_PROPERTY.get(flags),
|
||||
false,
|
||||
false,
|
||||
Flags.IS_CONST.get(flags),
|
||||
Flags.IS_LATEINIT.get(flags),
|
||||
proto.receiverType(c.typeTable)?.toTypeRef(local),
|
||||
returnTypeRef,
|
||||
Flags.IS_VAR.get(flags),
|
||||
null,
|
||||
FirDefaultPropertyGetter(c.session, null, returnTypeRef, ProtoEnumFlags.visibility(Flags.VISIBILITY.get(getterFlags))),
|
||||
FirDefaultPropertySetter(c.session, null, returnTypeRef, ProtoEnumFlags.visibility(Flags.VISIBILITY.get(setterFlags))),
|
||||
null
|
||||
isExpect = Flags.IS_EXPECT_PROPERTY.get(flags),
|
||||
isActual = false,
|
||||
isOverride = false,
|
||||
isConst = Flags.IS_CONST.get(flags),
|
||||
isLateInit = Flags.IS_LATEINIT.get(flags),
|
||||
receiverTypeRef = proto.receiverType(c.typeTable)?.toTypeRef(local),
|
||||
returnTypeRef = returnTypeRef,
|
||||
isVar = Flags.IS_VAR.get(flags),
|
||||
initializer = null,
|
||||
getter = FirDefaultPropertyGetter(c.session, null, returnTypeRef, ProtoEnumFlags.visibility(Flags.VISIBILITY.get(getterFlags))),
|
||||
setter = FirDefaultPropertySetter(c.session, null, returnTypeRef, ProtoEnumFlags.visibility(Flags.VISIBILITY.get(setterFlags))),
|
||||
delegate = null
|
||||
).apply {
|
||||
typeParameters += local.typeDeserializer.ownTypeParameters.map { it.firUnsafe() }
|
||||
annotations += c.annotationDeserializer.loadPropertyAnnotations(proto, local.nameResolver)
|
||||
@@ -209,16 +209,16 @@ class FirMemberDeserializer(private val c: FirDeserializationContext) {
|
||||
ProtoEnumFlags.visibility(Flags.VISIBILITY.get(flags)),
|
||||
ProtoEnumFlags.modality(Flags.MODALITY.get(flags)),
|
||||
Flags.IS_EXPECT_FUNCTION.get(flags),
|
||||
false,
|
||||
false,
|
||||
Flags.IS_OPERATOR.get(flags),
|
||||
Flags.IS_INFIX.get(flags),
|
||||
Flags.IS_INLINE.get(flags),
|
||||
Flags.IS_TAILREC.get(flags),
|
||||
Flags.IS_EXTERNAL_FUNCTION.get(flags),
|
||||
Flags.IS_SUSPEND.get(flags),
|
||||
proto.receiverType(local.typeTable)?.toTypeRef(local),
|
||||
proto.returnType(local.typeTable).toTypeRef(local)
|
||||
isActual = false,
|
||||
isOverride = false,
|
||||
isOperator = Flags.IS_OPERATOR.get(flags),
|
||||
isInfix = Flags.IS_INFIX.get(flags),
|
||||
isInline = Flags.IS_INLINE.get(flags),
|
||||
isTailRec = Flags.IS_TAILREC.get(flags),
|
||||
isExternal = Flags.IS_EXTERNAL_FUNCTION.get(flags),
|
||||
isSuspend = Flags.IS_SUSPEND.get(flags),
|
||||
receiverTypeRef = proto.receiverType(local.typeTable)?.toTypeRef(local),
|
||||
returnTypeRef = proto.returnType(local.typeTable).toTypeRef(local)
|
||||
).apply {
|
||||
typeParameters += local.typeDeserializer.ownTypeParameters.map { it.firUnsafe() }
|
||||
valueParameters += local.memberDeserializer.valueParameters(proto.valueParameterList)
|
||||
|
||||
@@ -22,7 +22,11 @@ interface SyntheticSymbol : ConeSymbol
|
||||
|
||||
class SyntheticPropertySymbol(callableId: CallableId) : FirPropertySymbol(callableId), SyntheticSymbol
|
||||
|
||||
class FirSyntheticPropertiesScope(val session: FirSession, val baseScope: FirScope, val typeCalculator: ReturnTypeCalculator) : FirScope {
|
||||
class FirSyntheticPropertiesScope(
|
||||
val session: FirSession,
|
||||
private val baseScope: FirScope,
|
||||
private val typeCalculator: ReturnTypeCalculator
|
||||
) : FirScope {
|
||||
|
||||
val synthetic: MutableMap<ConeCallableSymbol, ConeVariableSymbol> = mutableMapOf()
|
||||
|
||||
@@ -47,18 +51,18 @@ class FirSyntheticPropertiesScope(val session: FirSession, val baseScope: FirSco
|
||||
name,
|
||||
fir.visibility,
|
||||
fir.modality,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
null,
|
||||
returnTypeRef,
|
||||
true,
|
||||
null,
|
||||
FirDefaultPropertyGetter(session, null, returnTypeRef, fir.visibility),
|
||||
FirDefaultPropertySetter(session, null, returnTypeRef, fir.visibility),
|
||||
null
|
||||
isExpect = false,
|
||||
isActual = false,
|
||||
isOverride = false,
|
||||
isConst = false,
|
||||
isLateInit = false,
|
||||
receiverTypeRef = null,
|
||||
returnTypeRef = returnTypeRef,
|
||||
isVar = true,
|
||||
initializer = null,
|
||||
getter = FirDefaultPropertyGetter(session, null, returnTypeRef, fir.visibility),
|
||||
setter = FirDefaultPropertySetter(session, null, returnTypeRef, fir.visibility),
|
||||
delegate = null
|
||||
)
|
||||
return processor(synthetic)
|
||||
}
|
||||
|
||||
+3
-3
@@ -169,9 +169,9 @@ class FirLibrarySymbolProviderImpl(val session: FirSession) : FirSymbolProvider
|
||||
relativeClassName.shortName(),
|
||||
Visibilities.PUBLIC,
|
||||
Modality.OPEN,
|
||||
false,
|
||||
false,
|
||||
ClassKind.CLASS,
|
||||
isExpect = false,
|
||||
isActual = false,
|
||||
classKind = ClassKind.CLASS,
|
||||
isInner = false,
|
||||
isCompanion = false,
|
||||
isData = false,
|
||||
|
||||
+4
-4
@@ -435,10 +435,10 @@ open class FirBodyResolveTransformer(val session: FirSession, val implicitTypeOn
|
||||
null,
|
||||
Name.identifier("it"),
|
||||
FirResolvedTypeRefImpl(session, null, parameters.single(), emptyList()),
|
||||
null,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
defaultValue = null,
|
||||
isCrossinline = false,
|
||||
isNoinline = false,
|
||||
isVararg = false
|
||||
)
|
||||
else -> null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user