Replies: 1 comment 3 replies
-
There isn't an API for this. But we haven't seen a need for such an API. Why do you need it? Thanks! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need a way to visit all the compiler generated sugar, like the one when you do using-dispose, or try-catch, or interpolated-string-handler-implicit-use, or class-generation-from-record, or others.
I frequently find myself looking for something like that because we don't have direct support for that nowhere. When I'm in SyntaxWalker - plain syntax, in Symbol's - entities (although it solves the problem with records), in Operation's - more abstract stuff, and it's useful, but it's not like it copies the behavior of compiler sugar.
Maybe I don't understand something, but I feel like this useful functionality is missing, and language infra developers end up rewriting that over and over again. This includes right classes, and methods resolutions. Right ifs to fully copy the behavior of compiler frontend. And if this something changes - doing it all over again.
Metaphorically speaking, I understand that you are most interested in maintaining interfaces for the common "public", but maybe we could have some "protected" ones for tool developers too?
Beta Was this translation helpful? Give feedback.
All reactions