-
When you write an analyzer you may find that you sometimes don't have enough information to decide if a diagnostic should be created or not. See for example the opening comments in #11750 and #25054 . In the code snippets in the referenced issues an action is registered ( However, as mentioned in #11750, actions registered with Looking at the options offered by intellisense in my solution does not hint about there being any methods similar to Another example is this class in one of my projects where Summary: I am looking for a method for registering actions in an analyzer that is executed once at the end of the analysis process, that is enabled by default and not being as bad on performance as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In order to run a In order to best suggest how to structure your analysis pass, we'd need to understand what you're actually trying to do with it. What is the analysis you're trying to write? |
Beta Was this translation helpful? Give feedback.
We don't recommend this approach anymore. Use the nuget package.
The fact that you asked for it. That's what CompilationEnd implies: at the end of compilation. There's no incrementality here, no way to just partially rerun. Custom state from the previous run can't be reused.
You could do a SymbolEnd analysis, which could detect duplicates on the same type, but I'm really not certain that's worth it. You'll have to think about how to not …