Skip to content

Add support for moving classes between libraries #57057

Open
@natebosch

Description

@natebosch

This is a follow on to #48997

We can define a fix which uses replacedBy to move functions and variables to a new import, but cannot do the same with classes.

Can we either support replacedBy with classes, or add a movedTo operation which maintains the name and replaces only the import URI.

See dart-lang/test#1978 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-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