anchor.diff:        final Map<String, Section> sections = <String, Section>{};
         final Map<String, Snippet> snippets = <String, Snippet>{};
         _extractSamples(sections, snippets);
  -      errors = _analyze(_tempDir, sections, snippets);
  +      errors = _analyze(_tempDirectory, sections, snippets);
       } finally {
         if (errors.isNotEmpty) {
           for (String filePath in errors.keys) {
  
positive.code:       final Match parts = errorPattern.matchAsPrefix(error);
        if (parts != null) {
          final String message = parts[2];
          final File file = File(path.join(_tempDir.path, parts[3]));
          final List<String> fileContents = file.readAsLinesSync();
          final bool isSnippet = path.basename(file.path).startsWith('snippet.');
          final bool isSample = path.basename(file.path).startsWith('sample.');
  
negative.code:         }
          stderr.writeln('\nFound ${errors.length} sample code errors.');
        }
        if (!_keepTmp) {
          try {
            _tempDirectory.deleteSync(recursive: true);
          } on FileSystemException catch (e) {
            stderr.writeln('Failed to delete ${_tempDirectory.path}: $e');
          }
        } else {
          print('Leaving temporary directory ${_tempDirectory.path} around for your perusal.');
        }
        // If we made a snapshot, remove it (so as not to clutter up the tree).
        if (_snippetsSnapshotPath != null) {
  