Skip to content

Fix #1423: Fix owners of called methods in CollectSuperCalls. #1425

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
Jul 31, 2016

Conversation

nicolasstucki
Copy link
Contributor

Review by @odersky

case _ =>
}
super.transformSuper(tree)
super.transformSelect(tree)
Copy link
Member

Choose a reason for hiding this comment

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

Just return tree, the default implementation of transformX is always the identity

tree match {
case Trees.Super(qual: This, mix) if mix.nonEmpty =>
Copy link
Contributor

Choose a reason for hiding this comment

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

Fruitless outer pattern match (and this matters at least a little bit, because Select is a common node). More efficient:

tree.qualifier match { ... }

@odersky
Copy link
Contributor

odersky commented Jul 31, 2016

LGTM

@odersky odersky merged commit 3e6cdef into scala:master Jul 31, 2016
@allanrenucci allanrenucci deleted the fix-#1423 branch December 14, 2017 16:59
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.

4 participants