-
Notifications
You must be signed in to change notification settings - Fork 1.1k
How to access showExtractors in M3? #10832
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
Comments
I think this should work |
@bishabosha you know, the polite thing to do is to wait until the person who raised the issue confirms that what you suggest actually solves their problem before you suddenly close the issue on them. |
Oops, slip of the hand, @hmf does the snippet work for you? We should check to see if the documentation still mentions anywhere how to print extractors |
@bishabosha Yes, I have just finished testing and it works. As for the documentation I did a search in the Github web interface and it only showed the source to this link: https://dotty.epfl.ch/docs/reference/metaprogramming/tasty-reflect.html#extractors Thank you |
yes it seems that https://github.com/lampepfl/dotty/blob/master/docs/docs/reference/metaprogramming/tasty-reflect.md should be updated to replace |
- tree.showExtractors
+ tree.show(using Printer.TreeStructure) or - tree.showExtractors
+ Printer.TreeStructure.show(tree) or - tree.showExtractors
+ given Printer[Tree] = Printer.TreeStructure
+ tree.show Other printers are available in the same way under |
Minimized code
Output
Expectation
To be able to show the extractor. I have searched the repo for
showExtractors
and only found the documentation here. No release note so were can I find an example?Tested in the latest
3.0.0-M3
TIA
The text was updated successfully, but these errors were encountered: