Fergus Hewson
11/19/2025, 7:36 AMFirDeclarationGenerationExtension that I am using to generate a nested class with the same params as a data class plus custom setters, flows for each property and and all flow.
Is the correct process to generate callables for each method/property in getCallableNamesForClass and the generate properties and functions in generateProperties and generateFunctions?
To do this I have to parse the constructor for the supertype twice or cache callable information in the extensions and to generate the method signatures I need? Am I missing something about how this extension should work? If anyone has similar work. I could read I would really appreciate it too!bnorm
11/19/2025, 12:33 PMgenerate* functions. Namely, creating a custom origin key for the nested class which holds onto the constructor. I built out a sample compiler-plugin recently doing something very similar to what you are describing, and you can find the pattern I described used here: https://github.com/bnorm/buildable/blob/main/compiler-plugin/src/dev/bnorm/buildable/plugin/fir/BuildableFirDeclarationGenerationExtension.ktFergus Hewson
11/20/2025, 11:27 PM