Skip to content

Don't check positions in findTreesMatching #5222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2018

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Oct 9, 2018

We used to check the positions in findTreesMatching and exclude trees
where the position is not source-derived. It turns out that this is
wrong, because this will exclude all trees that have been unpickled.

The correct test, checking whether the position has a zero extent, is
already done in namedTrees.

We used to check the positions in `findTreesMatching` and exclude trees
where the position is not source-derived. It turns out that this is
wrong, because this will exclude all trees that have been unpickled.

The correct test, checking whether the position has a zero extent, is
already done in `namedTrees`.
Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make an issue to remember to add infrastructure to test stuff coming from tasty.

@Duhemm
Copy link
Contributor Author

Duhemm commented Oct 9, 2018

I opened #5223

@Duhemm Duhemm merged commit 7a45a4a into scala:master Oct 9, 2018
@Duhemm Duhemm deleted the fix/ide-positions branch October 9, 2018 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants