When we wind lines forward with wind_dumping_comments_until_line, we have a check to make sure we're still in the file. This check gets set by incrementing a counter on on_nl inside the parser, but (1) this was incorrect because on_nl wasn't getting called and (2) this is unnecessary since we have the file contents saved, so we can just use the line count instead.
Closes #413
When we wind lines forward with
wind_dumping_comments_until_line
, we have a check to make sure we're still in the file. This check gets set by incrementing a counter onon_nl
inside the parser, but (1) this was incorrect becauseon_nl
wasn't getting called and (2) this is unnecessary since we have the file contents saved, so we can just use the line count instead.