anchor.diff:      '--category-order', 'flutter,Dart Core,flutter_test,flutter_driver',
       '--show-warnings',
       '--auto-include-dependencies',
  -  ];
  +  ]);
   
     // Explicitly list all the packages in //flutter/packages/* that are
     // not listed 'nodoc' in their pubspec.yaml.
     for (String libraryRef in libraryRefs(diskPath: true)) {
  -    args.add('--include-external');
  -    args.add(libraryRef);
  +    dartdocArgs.add('--include-external');
  +    dartdocArgs.add(libraryRef);
     }
   
     process = await Process.start(
       pubExecutable,
  -    args,
  +    dartdocArgs,
       workingDirectory: 'dev/docs',
       environment: pubEnvironment,
     );
  -  printStream(process.stdout, prefix: 'dartdoc:stdout: ',
  -    filter: kVerbose ? const <Pattern>[] : <Pattern>[
  +  printStream(process.stdout, prefix: args['json'] ? '' : 'dartdoc:stdout: ',
  +    filter: args['verbose'] ? const <Pattern>[] : <Pattern>[
         new RegExp(r'^generating docs for library '), // unnecessary verbosity
         new RegExp(r'^pars'), // unnecessary verbosity
       ],
     );
  -  printStream(process.stderr, prefix: 'dartdoc:stderr: ',
  -    filter: kVerbose ? const <Pattern>[] : <Pattern>[
  -      new RegExp(r'^ warning: generic type handled as HTML:'), // https://github.com/dart-lang/dartdoc/issues/1475
  +  printStream(process.stderr, prefix: args['json'] ? '' : 'dartdoc:stderr: ',
  +    filter: args['verbose'] ? const <Pattern>[] : <Pattern>[
  +      new RegExp(r'^[ ]+warning: generic type handled as HTML:'), // https://github.com/dart-lang/dartdoc/issues/1475
         new RegExp(r'^ warning: .+: \(.+/\.pub-cache/hosted/pub.dartlang.org/.+\)'), // packages outside our control
       ],
     );
  
positive.code: 
    createFooter('dev/docs/lib/footer.html');
  
    // Verify which version of dartdoc we're using.
    final ProcessResult result = Process.runSync(
      pubExecutable,
      <String>['global', 'run', 'dartdoc', '--version'],
      workingDirectory: 'dev/docs',
      environment: pubEnvironment,
    );
    print('\n${result.stdout}flutter version: $version\n');
  
    // Generate the documentation.
    final List<String> args = <String>[
      'global', 'run', 'dartdoc',
      '--header', 'styles.html',
      '--header', 'analytics.html',
      '--header', 'survey.html',
  
negative.code: import 'dart:convert';
  import 'dart:io';
  
  import 'package:args/args.dart';
  import 'package:intl/intl.dart';
  import 'package:path/path.dart' as path;
  
  const String kDocRoot = 'dev/docs/doc';
  
  