This was requested in the review of D57006.
Details
Diff Detail
Event Timeline
Make sure to mention in the commit comment that this also quotes certain symbol names.
I'm surprised that several of the error messages appear to be untested (only one test needed updating, but there are at least 3 different behaviour changes here). I take it testing them is not straightforward?
LGTM anyway.
Ah, right, yes - will do.
I'm surprised that several of the error messages appear to be untested (only one test needed updating, but there are at least 3 different behaviour changes here). I take it testing them is not straightforward?
Correct, the two cases where I add quotes but there's no test change for are currently not possible to trigger, I think - both the input as set by Reader, and updates by Object currently should make them impossible to trigger. I guess asserts would be an option then as well. (At an earlier point in the evolution of the removeSections patch, some of them were triggerable, but I realized it's easy to do the right thing instead of erroring out on dangling associative sections). There's also lots of error messages in Reader that aren't tested, mainly for broken inputs.
Okay, it might be nice to turn the unreachable ones into asserts (or simply delete the code), but that's not relevant to this change.