anchor.diff:      print('Error creating files in $outputDir');
       exitCode = 1;
     }
  - 
  +
     return;
   }
   
  
positive.code: ''';
  
    new File(path.join(pubspecDir, entryPoint)).writeAsStringSync(html);
    
    var pubspecPath = path.join(pubspecDir, 'pubspec.yaml');
    var pubspecText = new File(pubspecPath).readAsStringSync();
    var transformers = loadYaml(pubspecText)['transformers'];
    var entryPoints = [entryPoint];
  
    var insertionPoint;
    var textToInsert = '';
  
negative.code:       insertionPoint = sourceSpan.start.offset;
        pubspecText = '${pubspecText.substring(0, insertionPoint)}'
            '${pubspecText.substring(sourceSpan.end.offset)}';
      }
    } else {
      // There were no transformers at all.
      insertionPoint = pubspecText.length;
      textToInsert = 'transformers:\n- ';
    }
  
    // TODO(dgrove): Once dartbug.com/20409 is addressed, use that here.
    var entryPointsText = entryPoints.map((e) => '    - $e').join('\n');
  
    textToInsert =
  '''${textToInsert}polymer:
      entry_points:
  $entryPointsText''';
  
  
    if (insertionPoint == pubspecText.length) {
      pubspecText = '${pubspecText}${textToInsert}';
    } else {
      pubspecText = '${pubspecText.substring(0, insertionPoint)}'
          '${textToInsert}\n${pubspecText.substring(insertionPoint)}';
    }
  
    _writePubspec(pubspecPath, pubspecText);
    return true;
  }
  
  _writePubspec(String pubspecPath, String text) {
  