Add Documentation imports #6140
Labels
d.enhancement
Improves docs with specific ask
e2-days
Can complete in < 5 days of normal, not dedicated, work
p.references
p2-medium
Necessary but not urgent concern. Resolve when possible.
t.cli-tools
Relates to the dart command line tools
t.diagnostics
Relates to diagnostics, analysis, or linting of code
Topic
https://dart.dev/tools/doc-comments/references
Notes
Add Documentation imports section to Documentation comment references guide.
Feature reference: dart-lang/sdk#56186
Follow up to #6080.
\cc @srawlins CCing you so you can follow this issue. If you do end up wanting to work on these docs, feel free to assign yourself. Thanks for your work on the initial docs and this feature!!
Content from https://github.com/dart-lang/dartdoc/pull/3935/files
Documentation imports (
/// @docImport
)Libraries that are only referenced in documentation comments (
[Future]
) can be imported with a/// @docImport '<uri>'
comment on thelibrary
element, like:The text was updated successfully, but these errors were encountered: