Skip to content

Report exported member access on @deprecated export #23067

Closed
@DartBot

Description

@DartBot

This issue was originally filed by @seaneagan


If you want to stop exporting library A from library B, but you don't want to deprecate library A itself, it would be nice to be able mark the export as deprecated:

@deprecated('Use libraryA.dart directly instead')
export 'libraryA.dart';

Here are some use cases:

Stop exporting something:
  dart-lang/test#53

Split part of a library into a separate library with a temporary re-export:
  dart-lang/test#2326

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work ondevexp-data-driven-fixesIssues with the analysis server's support for data-driven fixesdevexp-warningIssues with the analyzer's Warning codeslegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions