[FIR/IR generator] Add kDoc property to AbstractElement & AbstractField
This commit is contained in:
committed by
Space Team
parent
51325ba630
commit
7e7f4811bd
+6
-2
@@ -77,7 +77,9 @@ class Element(
|
||||
|
||||
val generationCallback = config.generationCallback
|
||||
val propertyName = config.propertyName
|
||||
val kDoc = config.kDoc
|
||||
|
||||
override val kDoc = config.kDoc
|
||||
|
||||
val additionalImports: List<Import> = config.additionalImports
|
||||
|
||||
override fun toString() = name
|
||||
@@ -126,7 +128,9 @@ sealed class Field(
|
||||
abstract val transformable: Boolean
|
||||
|
||||
val useInIrFactoryStrategy = config.useFieldInIrFactoryStrategy
|
||||
val kdoc = config.kdoc
|
||||
init {
|
||||
kDoc = config.kdoc
|
||||
}
|
||||
|
||||
val printProperty = config.printProperty
|
||||
val generationCallback = config.generationCallback
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ fun printElements(generationPath: File, model: Model) = sequence {
|
||||
addAnnotation(descriptorApiAnnotation)
|
||||
}
|
||||
|
||||
field.kdoc?.let {
|
||||
field.kDoc?.let {
|
||||
addKdoc(it)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user