-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improve owner handling in Reflection #10352
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
Improve owner handling in Reflection #10352
Conversation
7c6e94b
to
cd34a2a
Compare
test performance with #quotes please |
performance test scheduled: 7 job(s) in queue, 1 running. |
Performance test finished successfully: Visit http://dotty-bench.epfl.ch/10352/ to see the changes. Benchmarks is based on merging with master (ac806b8) |
cd34a2a
to
7022aef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Make owner-handling explicit in the programming model with debugging utilities will avoid frustrations of meta-programers.
The following tests are empty:
- tests/pos-macros/i10151
- tests/pos-macros/i10211
| | ||
|""".stripMargin) | ||
case _ => traverseChildren(t) | ||
}.traverse(tree) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very helpful, greatly improves debuggability 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not have been able to fix the tests without this. It proved to be quite useful.
* Add `changeOwner` * Add owner and symbol to `Lambda.apply` * Add owner to etaExpand for the creation of the closure * Ycheck the owners durring macro expansion * Fix scala#10151 * Fix scala#10211
7022aef
to
49dd953
Compare
I added the missing tests |
changeOwner
Lambda.apply