in example/example.dart [42:55]
String scopedLibrary() {
final methods = [
Method((b) => b
..body = const Code('')
..name = 'doThing'
..returns = refer('Thing', 'package:a/a.dart')),
Method((b) => b
..body = const Code('')
..name = 'doOther'
..returns = refer('Other', 'package:b/b.dart')),
];
final library = Library((b) => b.body.addAll(methods));
return _dartfmt.format('${library.accept(DartEmitter.scoped())}');
}