anchor.diff:          }
         }
       } else {
  -      testTemplate.add(line);
         for (var test in testsAsLines.values) test.add(line);
       }
     }
  +  // End marker, has a final line separator so we don't need to add it after
  +  // joining the lines.
  +  var marker =
  +      '// Test created from multitest named ${filePath.toNativePath()}.'
  +      '$line_separator';
  +  for (var test in testsAsLines.values) test.add(marker);
   
     var keysToDelete = [];
     // Check that every key (other than the none case) has at least one outcome
  
positive.code:        'static type warning', 'dynamic type error',
         'checked mode compile-time error']);
  
    List<String> testTemplate = new List<String>();
    testTemplate.add(
        '// Test created from multitest named ${filePath.toNativePath()}.');
    // Create the set of multitests, which will have a new test added each
    // time we see a multitest line with a new key.
    Map<String, List<String>> testsAsLines = new Map<String, List<String>>();
  
    int lineCount = 0;
    for (String line in lines) {
  
negative.code:     var annotation = new _Annotation.from(line);
      if (annotation != null) {
        testsAsLines.putIfAbsent(annotation.key,
            () => new List<String>.from(testsAsLines["none"]));
        // Add line to test with annotation.key as key, empty line to the rest.
        for (var key in testsAsLines.keys) {
          testsAsLines[key].add(annotation.key == key ? line : "");
        }
        outcomes.putIfAbsent(annotation.key, () => new Set<String>());
        if (annotation.rest != 'continued') {
          for (String nextOutcome in annotation.outcomesList) {
            if (validMultitestOutcomes.contains(nextOutcome)) {
              outcomes[annotation.key].add(nextOutcome);
  