Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Document@docImport inREADME.md#3935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jonasfj wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromdocImport
Open

Document@docImport inREADME.md#3935

jonasfj wants to merge1 commit intomainfromdocImport

Conversation

@jonasfj
Copy link
Member

Implemented indart-lang/sdk#56186 (credits @@srawlins).

We should probably document this ondart.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 🤣

@srawlins
Copy link
Member

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

@FMorschel
Copy link

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

@srawlins
Copy link
Member

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


```dart
/// @docImport 'dart:async';
/// @docImport 'package:flutter/element.dart' show Element;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

'show' is not supported. (yet?)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Exactly. Noting the umbrella issue for it does mention this was a goaldart-lang/sdk#56186.

/// @docImport 'dart:async';
/// @docImport 'package:flutter/element.dart' show Element;
/// @docImport '../path/to/somwhere.dart';
/// @docImport 'dart:html' as 'html';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

'as' is not supported. (yet?)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Exactly. Noting we have an issue for itdart-lang/sdk#56527 and the umbrella issue for it does mention this was a goaldart-lang/sdk#56186.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@srawlinssrawlinssrawlins approved these changes

+1 more reviewer

@FMorschelFMorschelFMorschel left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@jonasfj@srawlins@FMorschel

[8]ページ先頭

©2009-2025 Movatter.jp