anchor.diff:        .join('\n\n');
   
     // Only create a dart file if we found at least one polymer element.
  -  var hasDartFile = info.elements.length > 0;
  +  var hasDartFile = !info.elements.isEmpty;
     if (hasDartFile) {
       new File(path.join(outputDir, '$name.dart'))
           ..createSync(recursive: true)
  
positive.code:     extraImports.write('<link rel="import" href="$dartImport">\n');
    }
    var htmlBody = '<link rel="import" href="src/$dashName">\n$extraImports';
    if (hasDartFile) {
      htmlBody += '<script type="application/dart" src="$name.dart"></script>\n';
    }
    new File(path.join(outputDir, '$name.html'))
        ..createSync(recursive: true)
        ..writeAsStringSync(htmlBody);
  }
  
  int _lastLength = 0;
  
negative.code:   var name = path.withoutExtension(segments.last).replaceAll('-', '_');
    var outputDirSegments = ['lib'];
    if (segments.length > 4) {
      outputDirSegments.addAll(segments.getRange(2, segments.length - 1)
          .map((s) => s.replaceAll('-', '_')));
    }
    var outputDir = path.joinAll(outputDirSegments);
  
  