File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -260,24 +260,20 @@ class Dartdoc {
260260 ///
261261 /// Passing in a [postProcessCallback] to do additional processing after
262262 /// the documentation is generated.
263- void executeGuarded ([
264- Future <void > Function (DartdocOptionContext )? postProcessCallback,
265- ]) {
263+ void executeGuarded () {
266264 onCheckProgress.listen (logProgress);
267265 // This function should *never* `await runZonedGuarded` because the errors
268266 // thrown in [generateDocs] are uncaught. We want this because uncaught
269267 // errors cause IDE debugger to automatically stop at the exception.
270268 //
271269 // If you await the zone, the code that comes after the await is not
272270 // executed if the zone dies due to an uncaught error. To avoid this,
273- // confusion, never `await runZonedGuarded` and never change the return
274- // value of [executeGuarded].
271+ // confusion, never `await runZonedGuarded`.
275272 runZonedGuarded (
276273 () async {
277274 runtimeStats.startPerfTask ('generateDocs' );
278275 await generateDocs ();
279276 runtimeStats.endPerfTask ();
280- await postProcessCallback? .call (config);
281277 },
282278 (e, stackTrace) {
283279 stderr.writeln ('\n $_dartdocFailedMessage : $e \n $stackTrace ' );
You can’t perform that action at this time.
0 commit comments