Skip to content
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

latest scalameta introduces new items in tree hierarchy #2079

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

bjaglin
Copy link
Collaborator

@bjaglin bjaglin commented Sep 21, 2024

scalameta/scalameta#3913 adds new elements in the tree hierarchy, effectively changing the parent of

@bjaglin bjaglin changed the title test latest scalameta SNAPSHOT latest scalameta introduces a breaking changes Sep 22, 2024
@bjaglin bjaglin changed the title latest scalameta introduces a breaking changes latest scalameta introduces new elements in the tree hierarchy Sep 22, 2024
@bjaglin bjaglin changed the title latest scalameta introduces new elements in the tree hierarchy latest scalameta introduces new items in tree hierarchy Sep 22, 2024
@bjaglin bjaglin marked this pull request as ready for review September 22, 2024 20:54
@bjaglin bjaglin merged commit 5bd5989 into main Sep 22, 2024
9 checks passed
@@ -171,7 +171,7 @@ final class ExplicitResultTypes(
defn.hasMod(mod"implicit") && !isImplicitly(body)

def hasParentWihTemplate: Boolean =
defn.parent.exists(_.is[Template])
defn.parent.exists(_.is[Template.Body])

Choose a reason for hiding this comment

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

i added a convenience implicit so you can just say def.parent.is[].

@bjaglin bjaglin mentioned this pull request Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants