Skip to content

Conversation

@nicolasstucki
Copy link
Contributor

This way, the tree in the inline method will pass through all checks after first transform.

@nicolasstucki
Copy link
Contributor Author

Same as #17400 but for splices (macros).

@nicolasstucki nicolasstucki force-pushed the do-not-remove-inline-method-implementations-until-PruneErasedDefs branch 3 times, most recently from 2df765b to 5c9c61c Compare May 4, 2023 11:20
// Shrink size of the tree. The methods have already been inlined.
// TODO move to FirstTransform to trigger even without quotes
cpy.DefDef(tree)(rhs = defaultValue(tree.rhs.tpe))
tree
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We only removed the bodies of inline methods in a file containing a quote. All other inline methods kept the contents of inlined definitions until PruneErasedDefs.

@nicolasstucki nicolasstucki force-pushed the do-not-remove-inline-method-implementations-until-PruneErasedDefs branch from 5c9c61c to 82236ae Compare May 4, 2023 11:26
@nicolasstucki nicolasstucki marked this pull request as ready for review May 4, 2023 16:49
@nicolasstucki nicolasstucki requested a review from smarter May 4, 2023 16:49
@smarter smarter merged commit 0e00420 into scala:main May 4, 2023
@smarter smarter deleted the do-not-remove-inline-method-implementations-until-PruneErasedDefs branch May 4, 2023 16:54
@Kordyjan Kordyjan added this to the 3.3.1 milestone Aug 1, 2023
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.

3 participants