blob: 9ea09ca32d8d521b6c060529c2784d9764a9a5b6 [file] [log] [blame]
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:dartdoc/src/generator/generator.dart';
import 'package:dartdoc/src/logging.dart';
import 'package:dartdoc/src/model/model.dart';
import 'package:dartdoc/src/model_utils.dart';
/// A generator that does not generate files, but does traverse the
/// [PackageGraph] and access [ModelElement.documentationAsHtml] for every
/// element as though it were.
class EmptyGenerator implements Generator {
Future<void> generate(PackageGraph packageGraph) {
for (var package in {
}) {
for (var category in filterNonDocumented(package.categories)) {
for (var lib in filterNonDocumented(package.libraries)) {
.forEach((m) => logProgress(m.documentationAsHtml));
return Future.value();
Set<String> get writtenFiles => const {};
Generator initEmptyGenerator() {
return EmptyGenerator();