How can I identify and analyze local variables and parameters with Roslyn code diagnostics?
问题 I'm confused which method to use on the AnalysisContext context object to have every function/method's local variables anazlyed: either RegisterSymbolAction() or RegisterSyntaxNodeAction() . It's likely RegisterSymbolAction() as per the sample Diagnostic with Code Fix (NuGet + VSIX) in the Roslyn SDK Project Templates.vsix. I'm debugging using a simple console app whose Main() has a handful of local variables of type string and int . I've tried these two, but neither will trigger any variable