Tóth István Zoltán
07/05/2024, 10:35 AMFirDeclarationGenerationExtension.getCallableNamesForClass
I return with a Set
. However, the order of the declarations would be important as one of the properties I generate use another I generate. The set does not keep the order, so, my code fails with Parameter specified as non-null is null
. Should I reorder the declarations? Or do I do something wrong?dmitriy.novozhilov
07/05/2024, 10:41 AMTóth István Zoltán
07/05/2024, 10:43 AMdmitriy.novozhilov
07/05/2024, 10:44 AMThe value of the second property uses the value of the first one.Do you mean it is used in the initializer?
Tóth István Zoltán
07/05/2024, 10:46 AMirCall(
companionClass.propertyGetter { Strings.ADAT_METADATA },
irGet(companionClass.thisReceiver !!)
)
Tóth István Zoltán
07/05/2024, 10:47 AMcompanion object {
val a = 12
val b = a + 12
}
dmitriy.novozhilov
07/05/2024, 10:48 AMTóth István Zoltán
07/05/2024, 10:48 AMdmitriy.novozhilov
07/05/2024, 10:48 AMIrClass.declarations
manuallyTóth István Zoltán
07/05/2024, 10:49 AMTóth István Zoltán
07/05/2024, 10:49 AM