Skip to content

[analyzer_testing] Make rule tests (lint method) use TestCode ranges #61889

@FMorschel

Description

@FMorschel

Similarly to #60234, I've seen the lint rule tests and similar be offset on Windows.

I propose we deprecate the existing lint and error methods provided by analyzer_testing to prefer using a version that uses the ranges from TestCode similarly to assist tests.

We could still accept the other parameters but we would accept the range index instead of the offset and length. This would also help with the normalisation work done at the before-mentioned issue.

CC @RohitSaily @bwilkerson @DanTup @srawlins

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions