Skip to content

Need tests for SemanticModel.Get*Diagnostics with span #1557

@gafter

Description

@gafter

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#.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions