Emitted Warnings from the compiler should have assigned error identifier. #19698
Replies: 3 comments
-
I also have this idea, which I'd like to hear your opinion about: What if we add The first concern is how expensive this is, but if the performance lose is insignificant, we could then use those warnings and report them as hints in your client. This will effectively work only on the file that is currently opened, and would work even if you don't have This will properly mark unused and deprecated methods in your IDE, thus enhance developer experience, and while not cluttering their build. |
Beta Was this translation helpful? Give feedback.
-
Here is what I have so far if anyone would like to take a look: #19780 |
Beta Was this translation helpful? Give feedback.
-
For the first concern, there is a PR to improve performance of the check. |
Beta Was this translation helpful? Give feedback.
-
As of last year, each dotty Error comes with an assigned identifier. It was added as part of the actionable diagnostics #14904.
This allows us to identify errors in other tools, by comparing the codes. Previously we did this with regex. This discussion is a place where we will discuss adding such identifiers to all warnings we emit.
The motivation behind it is almost the same as with error codes:
If you have any opinions, comments, tips or anything related to this initiative, feel free to join the discussion.
This feature is going to be implemented by @ghostbuster91
Beta Was this translation helpful? Give feedback.
All reactions