[tree generator] Make defaultEmptyList#withGetter false by default

to align it with other default* methods.

This will be helpful for configuring IR implementation,
where there are many such empty lists.
This commit is contained in:
Wojciech Litewka
2024-02-14 11:16:26 +01:00
committed by Space Team
parent 5d7a5245ff
commit 665bd5153a
2 changed files with 7 additions and 7 deletions
@@ -73,7 +73,7 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
}
fun ImplementationContext.commonAnnotationConfig() {
defaultEmptyList("annotations")
defaultEmptyList("annotations", withGetter = true)
default("coneTypeOrNull") {
value = "annotationTypeRef.coneTypeOrNull"
withGetter = true
@@ -203,8 +203,8 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
val emptyExpressionBlock = impl(block, "FirEmptyExpressionBlock") {
noSource()
defaultEmptyList("statements")
defaultEmptyList("annotations")
defaultEmptyList("statements", withGetter = true)
defaultEmptyList("annotations", withGetter = true)
publicImplementation()
defaultNull("coneTypeOrNull")
}
@@ -635,7 +635,7 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
"typeParameters",
implementationPredicate = { it.typeName in implementationsWithoutStatusAndTypeParameters }
) {
defaultEmptyList(it)
defaultEmptyList(it, withGetter = true)
additionalImports(resolvedDeclarationStatusImplType)
}
}