dartdoc icon indicating copy to clipboard operation
dartdoc copied to clipboard

Document `@docImport` in `README.md`

Open jonasfj opened this issue 1 year ago • 3 comments

Implemented in https://github.com/dart-lang/sdk/issues/56186 (credits @@srawlins).

We should probably document this on dart.dev too. But I figured it would be harmless to add it to dartdoc. This is certainly one of the placed I went to look for it :rofl:

jonasfj avatar Nov 25 '24 16:11 jonasfj

Thanks for the PR! I'd like to put this off until the implementation is a little bit tidied. There are a few items I hope to finish this quarter before "releasing" the feature:

  • prefixes (@docImport 'foo' as foo;)
  • reporting unused doc-imports
  • reporting imports that could be doc-imports

srawlins avatar Nov 25 '24 16:11 srawlins

@srawlins, what about this PR now that we have https://dart.dev/tools/doc-comments/references#doc-imports?

FMorschel avatar May 21 '25 15:05 FMorschel

Oh wow, blast from the past 😅 yes I'll review this anew.

srawlins avatar May 21 '25 16:05 srawlins