anchor.diff:    }
   
     List<File> _collectDartFiles(Directory dir, List<File> collected, {FileFilter exclude}) {
  +    // Bail out in case of a .dartignore.
  +    if (FileSystemEntity.isFileSync(path.join(path.dirname(dir.path), '.dartignore')))
  +      return collected;
  +
       for (FileSystemEntity entity in dir.listSync(recursive: false, followLinks: false)) {
         if (isDartFile(entity) && (exclude == null || !exclude(entity))) {
           collected.add(entity);
  
positive.code:       }
      }
  
      if (argResults['current-package']) {
        // **/.*dart
        Directory cwd = new Directory('.');
        _collectDartFiles(cwd, dartFiles);
  
negative.code:     }
  
      //TODO(ianh): Fix the intl package resource generator
      //TODO(pq): extract this regexp from the exclude in options
      RegExp stockExampleFiles = new RegExp('examples/stocks/lib/.*\.dart\$');
  
      if (argResults['flutter-repo']) {
  