anchor.diff:    void _initActivated() {
       if (_activatedPackages == null) {
         _activatedPackages = new Set();
  -      _activatedPackages.addAll(_list().map((appVer) => appVer.name));
  +      _activatedPackages.addAll(list().map((app) => app.packageName));
       }
     }
   }
  
positive.code:   }
  }
  
  /// A version/app name pair.
  class _AppVersion {
    final String name;
    final String version;
  
    _AppVersion(this.name, [this.version]);
  
    static _AppVersion parse(String output) {
      var lastSpace = output.lastIndexOf(' ');
      if (lastSpace == -1) return new _AppVersion(output);
      return new _AppVersion(
          output.substring(0, lastSpace), output.substring(lastSpace + 1));
    }
  
    String toString() => '$name $version';
  }
  
  class _PubGlobalApp extends PubApp {
  
negative.code:   }
  
    static String version({bool quiet: false}) =>
        _parseVersion(_run('--version', quiet: quiet));
  
    static String _run(String command, {bool quiet: false}) =>
        run_lib.run(_sdkBin('dart2js'), quiet: quiet, arguments: [command]);
  