I get that declaredMembers (and its subsets) is a ...
# reflect
a
I get that declaredMembers (and its subsets) is a List as an implementation detail, but is there a way to use kotlin's reflection to get the declared members in source order, more specifically in that primary constructor declared parameters come first in the list before the rest? (well, without querying the compiler-generated copy method to get the names of the parameters to use as a filter)
d
If that much matters to you, maybe you’d be better off looking into a compiler plugin instead.
e
for a
data class
, can't you use the primary constructor's parameters? that is ordered
for members other than that, there is no ordering