import 'dart:async'; import 'package:file/file.dart'; import 'package:jael3/jael3.dart' as jael; import 'package:jael3_preprocessor/jael3_preprocessor.dart' as jael; Future process( jael.Document doc, Directory dir, Function(jael.JaelError e) errorHandler) { return jael.resolve(doc, dir, onError: errorHandler, patch: [ (doc, dir, onError) { print(doc!.root.children.length); return doc; }, ]); }