Skip to content

Tooling support: Attachments for infix Apply and postfix Select#10042

Merged
lrytz merged 1 commit intoscala:2.12.xfrom
lrytz:infixAttachment
Jun 8, 2022
Merged

Tooling support: Attachments for infix Apply and postfix Select#10042
lrytz merged 1 commit intoscala:2.12.xfrom
lrytz:infixAttachment

Conversation

@lrytz
Copy link
Member

@lrytz lrytz commented Jun 3, 2022

Mark infix applications and postfix selections with a tree attachment. This can be useful for tooling that builds on the compiler / scala reflection.

A followup, #10063, does the same thing for auto-application.

Mark infix applications and postfix selections with a tree attachment.
This can be useful for tooling that builds on the compiler / scala
reflection.
@scala-jenkins scala-jenkins added this to the 2.12.17 milestone Jun 3, 2022
@lrytz lrytz requested a review from retronym June 3, 2022 11:46
case class InjectDerivedValue(arg: Tree)
extends SymTree with TermTree

class PostfixSelect(qual: Tree, name: Name) extends Select(qual, name)
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like it was inlined into scalameta/scalameta and only used for versions prior to 2.12.8, which is no longer supported. So we should be good I think.

@lrytz lrytz merged commit bac51a6 into scala:2.12.x Jun 8, 2022
@SethTisue
Copy link
Member

SethTisue commented Jun 8, 2022

should we release-note this? (might other tooling maintainers be interested, besides the one you're already in touch with?)

@lrytz
Copy link
Member Author

lrytz commented Jun 10, 2022

OK with me, there might be projects out there

@lrytz lrytz added the release-notes worth highlighting in next release notes label Jun 10, 2022
@lrytz lrytz mentioned this pull request Jun 30, 2022
@SethTisue SethTisue changed the title Attachments for infix Apply and postifx Select Attachments for infix Apply and postfix Select Jun 30, 2022
@SethTisue SethTisue changed the title Attachments for infix Apply and postfix Select Tooling support: Attachments for infix Apply and postfix Select Aug 31, 2022
dongjoon-hyun pushed a commit to apache/spark that referenced this pull request Sep 17, 2022
### What changes were proposed in this pull request?
This PR aims to upgrade Scala to 2.12.17
- https://www.scala-lang.org/news/2.12.17

### Why are the changes needed?
The main [change](https://github.com/scala/scala/pulls?q=is%3Apr+sort%3Aupdated-desc+milestone%3A2.12.17+is%3Amerged+label%3Arelease-notes) fo this version as follows:

- scala/scala#10109
- scala/scala#10075
- scala/scala#10108
- scala/scala#10045
- scala/scala#10063
- scala/scala#10042
- scala/scala#10040
- scala/scala#10095

### Does this PR introduce _any_ user-facing change?
Yes, this is a Scala version change.

### How was this patch tested?
Existing Test

Closes #37892 from LuciferYang/SPARK-40436.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
LuciferYang added a commit to LuciferYang/spark that referenced this pull request Sep 20, 2022
### What changes were proposed in this pull request?
This PR aims to upgrade Scala to 2.12.17
- https://www.scala-lang.org/news/2.12.17

### Why are the changes needed?
The main [change](https://github.com/scala/scala/pulls?q=is%3Apr+sort%3Aupdated-desc+milestone%3A2.12.17+is%3Amerged+label%3Arelease-notes) fo this version as follows:

- scala/scala#10109
- scala/scala#10075
- scala/scala#10108
- scala/scala#10045
- scala/scala#10063
- scala/scala#10042
- scala/scala#10040
- scala/scala#10095

### Does this PR introduce _any_ user-facing change?
Yes, this is a Scala version change.

### How was this patch tested?
Existing Test

Closes apache#37892 from LuciferYang/SPARK-40436.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes worth highlighting in next release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants