@@ -1652,13 +1652,13 @@ List<DartdocOption> createDartdocOptions(
16521652 help: 'Allow links to be generated for packages outside this one.' ,
16531653 negatable: true ),
16541654 ]),
1655- // TODO(srawlins): Deprecate; with the advent of the unnamed library, this
1656- // should be applied in each file, on the `library;` directive .
1655+ // Deprecated. Use of this option is reported.
1656+ // TODO(srawlins): Remove .
16571657 DartdocOptionFileOnly <List <String >>('nodoc' , [], resourceProvider,
16581658 optionIs: OptionKind .glob,
1659- help: 'Dart symbols declared in these files will be treated as though '
1660- 'they have the @nodoc directive added to their documentation '
1661- 'comment.' ),
1659+ help: '(deprecated) Dart symbols declared in these files will be '
1660+ 'treated as though they have the @nodoc directive added to their '
1661+ 'documentation comment.' ),
16621662 DartdocOptionArgOnly <String >('output' ,
16631663 resourceProvider.pathContext.join ('doc' , 'api' ), resourceProvider,
16641664 optionIs: OptionKind .dir, help: 'Path to the output directory.' ),
@@ -1690,13 +1690,10 @@ List<DartdocOption> createDartdocOptions(
16901690 (option.root['topLevelPackageMeta' ].valueAt (dir) as PackageMeta )
16911691 .requiresFlutter) {
16921692 String ? flutterRoot = option.root['flutterRoot' ].valueAt (dir);
1693- if (flutterRoot == null ) {
1694- // For now, return null. An error is reported in
1695- // [PackageBuilder.buildPackageGraph].
1696- return null ;
1697- }
1698- return resourceProvider.pathContext
1699- .join (flutterRoot, 'bin' , 'cache' , 'dart-sdk' );
1693+ return flutterRoot == null
1694+ ? null
1695+ : resourceProvider.pathContext
1696+ .join (flutterRoot, 'bin' , 'cache' , 'dart-sdk' );
17001697 }
17011698 return packageMetaProvider.defaultSdkDir.path;
17021699 }, packageMetaProvider.resourceProvider,
0 commit comments