Make ChangeTracker#newLineCharacter public, to avoid having to pass newLineCharacter around as a parameter#20574
Conversation
…ewLineCharacter around as a parameter
|
I agree that it would be nice to track the newline character in fewer places, but it's not intuitively obvious to me why the |
… make it private again
1b86c76 to
9b769cc
Compare
|
The idea was that In addition the following are now only used publicly by tests: |
amcasey
left a comment
There was a problem hiding this comment.
Nice! I like this approach much better. (I did not carefully review the new textChanges functions.)
Noticed in many code fixes that we have functions with both a
ChangeTrackerandnewLineCharacteras parameters.ChangeTrackeralready storesnewLineCharacteras a property, so we can just make that property public (still internal though) and access that.