Skip to content

Commit 00d49b2

Browse files
authored
Update doc-import to primary configured import, _goldens_io.dart (#151390)
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`.
1 parent f080102 commit 00d49b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter_test/lib/src/goldens.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/// @docImport 'package:flutter/widgets.dart';
66
///
7-
/// @docImport '_goldens_web.dart';
7+
/// @docImport '_goldens_io.dart';
88
/// @docImport 'binding.dart';
99
/// @docImport 'matchers.dart';
1010
/// @docImport 'widget_tester.dart';

0 commit comments

Comments
 (0)