We have to do a topological sort to mix instance declarations and value declarations, and also to get instance declarations in the right order. Currently, this uses topoSortSentences. I want to see if I can make this function, or another function, a bit better at preserving the original order, so that we have to emit less order edits when things are in the right order in the source code already. examples/successors is an example for that.
We have to do a topological sort to mix instance declarations and value declarations, and also to get instance declarations in the right order. Currently, this uses
topoSortSentences
. I want to see if I can make this function, or another function, a bit better at preserving the original order, so that we have to emit lessorder
edits when things are in the right order in the source code already.examples/successors
is an example for that.