Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Prepare to migrate to scalameta #195

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

kitbellew
Copy link

@kitbellew kitbellew commented Jul 15, 2021

In order to support scala 2.13 and newer dialect, we need to migrate to scalameta parser. This sequence of changes introduces minor fixes to mimic the post-migration behaviour.

Towards #141.

Albert Meltzer added 12 commits July 15, 2021 22:59
For `FullDefOrDcl`, we were erroneously looking for scaladoc in all
tokens, whereas the intent was for to find them before the enclosed
`DefOrDcl` (for which another iteration would apply).
The scalameta parser could be used to parse complete scala source or a
single statement, but not both at once. Let's make sure all our tests
are parsable as full source, not single statement.
DO comes either with WHILE or FOR, and both are already counted.
If there's code on a given line, in addition to a comment, let's count
it.
This includes pattern extractors, not just standalone vals.
@kitbellew
Copy link
Author

@mwz PTAL (easiest is to read one commit at a time, they are self-contained and normally concise).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant