anchor.diff:      for (Entry entry in section.entries) {
         if (entry is EmptyEntry) {
           entries.add(entry);
  -      } else if (entry is StatusEntry && entry.comment != null ||
  -          entry is CommentEntry) {
  +      } else if (entry is CommentEntry) {
           entries.add(entry);
           hasStatusEntries = true;
         } else if (entry is StatusEntry) {
  -        StatusEntry newEntry = filterExpectations(entry, expectationsToKeep);
  +        StatusEntry newEntry = entry;
  +        if (entry.comment == null) {
  +          newEntry = filterExpectations(entry, expectationsToKeep);
  +        } else if (removeComments) {
  +          newEntry = filterExpectations(entry, expectationsToKeep);
  +          // Store comment if entry will be removed.
  +          if (newEntry == null) {
  +            String comment = entry.comment.toString().substring(1).trim();
  +            String testName = entry.path;
  +            String expectations = entry.expectations.toString();
  +            // Remove '[' and ']'.
  +            expectations = expectations.substring(1, expectations.length - 1);
  +            String conditionPrefix =
  +                section.condition != null ? "${section.condition}" : "";
  +            String issueText = await getIssueText(comment, resolveIssueState);
  +            String statusLine = "$conditionPrefix\t$testName\t$expectations"
  +                "\t$comment\t$issueText";
  +            comments.add(statusLine);
  +          }
  +        }
           if (newEntry != null) {
             entries.add(newEntry);
             hasStatusEntries = true;
  
positive.code:       help: "Overwrite input file with output.");
    parser.addFlag("keep-crashes",
        abbr: 'c', negatable: false, defaultsTo: false);
    parser.addFlag("help",
        abbr: "h",
        negatable: false,
  
negative.code: //
  // When using the option to keep crashes, there will be an additional line
  //   a: Crash
  //
  // The option -r can be used to also process expectations in lines with
  // comments. In this mode, deleted comments are collected and either printed
  // out or written to a separate file (with -w).
  //
  // The option -i (with -r) tries to resolve the status of issues mentioned in
  // comments and adds it to the collected comments. This requires an issue.log
  // file as described in [parseIssueFile].
  
  import 'dart:io';
  
  