sdk icon indicating copy to clipboard operation
sdk copied to clipboard

`@docImport`s should support `as` imports

Open goderbauer opened this issue 1 year ago • 1 comments
trafficstars

Something like this should work:

/// @docImport 'dart:io' as io;
library;

/// You can use [io.Stdin] to...
void foo() {
  // intentionally left blank
}

goderbauer avatar Aug 20 '24 20:08 goderbauer

Summary: The @docImport annotation currently doesn't support the as keyword for aliasing imported libraries, making it difficult to reference imported symbols in documentation comments. This issue proposes adding support for as imports within @docImport annotations.

dart-github-bot avatar Aug 20 '24 20:08 dart-github-bot