As an example I have the following type:
data NodeF atom a
= Fraction { id :: Int, numerator :: Array a, denominator :: Array a }
| Atom { id :: Int, value :: atom }
I would like to rename numerator to num and denominator to den. Are there any tools for doing this safely across a codebase? I don’t want to rely on my editor’s find-and-replace since it might renamed instances of “numerator” that aren’t part of Fraction.
I had a look at externs.json for a couple of the files, but it seems like they don’t have enough information to determine what symbols to rename.