Overload resolution #74535
-
Is there an API that allows to do method resolution? So if I have a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is not. That's because overload resolution needs more than that. It needs the actual expressions written, which may not have types yet. If you need to do overload resolution, generate a new syntax tree with the code you are interested in, and get the semantic model for that to look at. |
Beta Was this translation helpful? Give feedback.
There is not. That's because overload resolution needs more than that. It needs the actual expressions written, which may not have types yet.
If you need to do overload resolution, generate a new syntax tree with the code you are interested in, and get the semantic model for that to look at.