FIR: cleanup of DataClassUtils: remove redundant status field assignments
This commit is contained in:
@@ -39,17 +39,7 @@ fun List<Pair<KtParameter?, FirProperty>>.generateComponentFunctions(
|
|||||||
val name = Name.identifier("component$componentIndex")
|
val name = Name.identifier("component$componentIndex")
|
||||||
componentIndex++
|
componentIndex++
|
||||||
val symbol = FirNamedFunctionSymbol(CallableId(packageFqName, classFqName, name))
|
val symbol = FirNamedFunctionSymbol(CallableId(packageFqName, classFqName, name))
|
||||||
val status = FirDeclarationStatusImpl(Visibilities.PUBLIC, Modality.FINAL).apply {
|
val status = FirDeclarationStatusImpl(Visibilities.PUBLIC, Modality.FINAL)
|
||||||
isExpect = false
|
|
||||||
isActual = false
|
|
||||||
isOverride = false
|
|
||||||
isOperator = false
|
|
||||||
isInfix = false
|
|
||||||
isInline = false
|
|
||||||
isTailRec = false
|
|
||||||
isExternal = false
|
|
||||||
isSuspend = false
|
|
||||||
}
|
|
||||||
val parameterSource = ktParameter?.toFirSourceElement()
|
val parameterSource = ktParameter?.toFirSourceElement()
|
||||||
firClass.addDeclaration(
|
firClass.addDeclaration(
|
||||||
FirSimpleFunctionImpl(
|
FirSimpleFunctionImpl(
|
||||||
@@ -87,17 +77,7 @@ fun List<Pair<KtParameter?, FirProperty>>.generateCopyFunction(
|
|||||||
firPrimaryConstructor: FirConstructor
|
firPrimaryConstructor: FirConstructor
|
||||||
) {
|
) {
|
||||||
val symbol = FirNamedFunctionSymbol(CallableId(packageFqName, classFqName, copyName))
|
val symbol = FirNamedFunctionSymbol(CallableId(packageFqName, classFqName, copyName))
|
||||||
val status = FirDeclarationStatusImpl(Visibilities.PUBLIC, Modality.FINAL).apply {
|
val status = FirDeclarationStatusImpl(Visibilities.PUBLIC, Modality.FINAL)
|
||||||
isExpect = false
|
|
||||||
isActual = false
|
|
||||||
isOverride = false
|
|
||||||
isOperator = false
|
|
||||||
isInfix = false
|
|
||||||
isInline = false
|
|
||||||
isTailRec = false
|
|
||||||
isExternal = false
|
|
||||||
isSuspend = false
|
|
||||||
}
|
|
||||||
firClass.addDeclaration(
|
firClass.addDeclaration(
|
||||||
FirSimpleFunctionImpl(
|
FirSimpleFunctionImpl(
|
||||||
classOrObject?.toFirSourceElement(),
|
classOrObject?.toFirSourceElement(),
|
||||||
|
|||||||
Reference in New Issue
Block a user