You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A source file without blank/newline at the end has incorrect positions for trees that run until the end of the file.
An example: a file class A without a trailing space has the end position 6 for the PackageDef, ClassDef, Template, etc. If I insert a space at the end of the file, the positions correctly end with 7.
I have several workaround for this in the scala-refactoring library, but every few weeks I find another case where I don't handle this properly, so I'd prefer a proper fix in the compiler :-)
The text was updated successfully, but these errors were encountered:
A source file without blank/newline at the end has incorrect positions for trees that run until the end of the file.
An example: a file
class A
without a trailing space has the end position 6 for the PackageDef, ClassDef, Template, etc. If I insert a space at the end of the file, the positions correctly end with 7.I have several workaround for this in the scala-refactoring library, but every few weeks I find another case where I don't handle this properly, so I'd prefer a proper fix in the compiler :-)
The text was updated successfully, but these errors were encountered: