@@ -299,7 +299,7 @@ Future<void> runDoc(ArgResults commandResults) async {
299
299
'flutter' => docFlutter (withStats: stats),
300
300
'help' => _docHelp (),
301
301
'package' => _docPackage (commandResults, withStats: stats),
302
- 'sdk' => docSdk (),
302
+ 'sdk' => docSdk (withStats : stats ),
303
303
'testing-package' => docTestingPackage (),
304
304
_ => throw UnimplementedError ('Unknown doc target: "$target "' ),
305
305
};
@@ -462,9 +462,10 @@ Future<String> docPackage({
462
462
return path.join (pubPackageDir.absolute.path, 'doc' , 'api' );
463
463
}
464
464
465
- Future <void > docSdk () async => _docSdk (
465
+ Future <void > docSdk ({ bool withStats = false } ) async => _docSdk (
466
466
sdkDocsPath: _sdkDocsDir.path,
467
467
dartdocPath: Directory .current.path,
468
+ withStats: withStats,
468
469
);
469
470
470
471
/// Creates a throwaway pub cache and returns the environment variables
@@ -547,6 +548,7 @@ Future<void> compareSdkWarnings() async {
547
548
Future <Iterable <Map <String , Object ?>>> _docSdk ({
548
549
required String sdkDocsPath,
549
550
required String dartdocPath,
551
+ bool withStats = false ,
550
552
}) async {
551
553
var launcher = SubprocessLauncher ('build-sdk-docs' );
552
554
await launcher
@@ -570,6 +572,7 @@ Future<Iterable<Map<String, Object?>>> _docSdk({
570
572
'lib/resources/blank.txt' ,
571
573
],
572
574
workingDirectory: dartdocPath,
575
+ withStats: withStats,
573
576
);
574
577
}
575
578
0 commit comments