The Methods SemanticModel.GetSyntaxDiagnostics and SemanticModel.GetDeclarationDiagnostics and SemanticModel.GetMethodBodyDiagnostics take a span, and are supposed to only report diagnostics which overlap that span. However, there is a rumor that these don't work properly for VB when the span is within the method body.
We need more test coverage for these methods with nontrivial spans in both VB and C#.
The Methods
SemanticModel.GetSyntaxDiagnosticsandSemanticModel.GetDeclarationDiagnosticsandSemanticModel.GetMethodBodyDiagnosticstake a span, and are supposed to only report diagnostics which overlap that span. However, there is a rumor that these don't work properly for VB when the span is within the method body.We need more test coverage for these methods with nontrivial spans in both VB and C#.