Skip to content

Commit

Permalink
Update doc-import to primary configured import, _goldens_io.dart (#15…
Browse files Browse the repository at this point in the history
…1390)

There is a... restriction in dartdoc, such that a library which is
`@docImport`ed in one library, must be otherwise regularly imported in
some other library. Without this case, dartdoc gets a bit lost about
where the doc-imported library is.

Combine this restriction with analyzer's restriction that it doesn't
super duper handle configuration imports. Since `_goldens_io.dart` is
the "primary" import in all other files, and `_goldens_web.dart` is the
"configured" import, we must only doc-import `_goldens_io.dart`.
  • Loading branch information
srawlins committed Jul 8, 2024
1 parent f080102 commit 00d49b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flutter_test/lib/src/goldens.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 4,7 @@

/// @docImport 'package:flutter/widgets.dart';
///
/// @docImport '_goldens_web.dart';
/// @docImport '_goldens_io.dart';
/// @docImport 'binding.dart';
/// @docImport 'matchers.dart';
/// @docImport 'widget_tester.dart';
Expand Down

0 comments on commit 00d49b2

Please sign in to comment.