File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -260,24 +260,20 @@ class Dartdoc {
260
260
///
261
261
/// Passing in a [postProcessCallback] to do additional processing after
262
262
/// the documentation is generated.
263
- void executeGuarded ([
264
- Future <void > Function (DartdocOptionContext )? postProcessCallback,
265
- ]) {
263
+ void executeGuarded () {
266
264
onCheckProgress.listen (logProgress);
267
265
// This function should *never* `await runZonedGuarded` because the errors
268
266
// thrown in [generateDocs] are uncaught. We want this because uncaught
269
267
// errors cause IDE debugger to automatically stop at the exception.
270
268
//
271
269
// If you await the zone, the code that comes after the await is not
272
270
// 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`.
275
272
runZonedGuarded (
276
273
() async {
277
274
runtimeStats.startPerfTask ('generateDocs' );
278
275
await generateDocs ();
279
276
runtimeStats.endPerfTask ();
280
- await postProcessCallback? .call (config);
281
277
},
282
278
(e, stackTrace) {
283
279
stderr.writeln ('\n $_dartdocFailedMessage : $e \n $stackTrace ' );
You can’t perform that action at this time.
0 commit comments