ReportDiagnostic and ContainsDiagnostics

Topics: APIs, C# Language Design
Dec 19, 2014 at 6:02 PM
I'm using the latest Roslyn and VS15 preview bits.

I have written a basic analyzer that generates a build error.
Everything works as expected, except when analyzing the syntax tree using the Roslyn Syntax Tree Visualizer plugin, none of the nodes answer 'True' to ContainsDiagnostics.

The VS UI however shows the underline squiggles correctly and there is a build error.

How can this be? Is this a bug or something else?
Dec 19, 2014 at 8:59 PM
ContainsDiagnostics pertains only to diagnostics generated by the compiler. This is there so you can determine if you want to analyze a node.