anchor.diff:    }
   }
   
  -/// 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';
  +/// Parse the version out of strings like:
  +///
  +///     dart_coveralls 0.1.11
  +///     pub_cache 0.0.1 at path "/Users/foobar/projects/pub_cache"
  +String _parseVersion(String output) {
  +  List<String> tokens = output.split(' ');
  +  return tokens.length < 2 ? null : tokens[1];
   }
   
   class _PubGlobalApp extends PubApp {
  
positive.code:     run_lib.run(_sdkBin('dartanalyzer'), arguments: args);
    }
  
    static String version({bool quiet: false}) => _AppVersion.parse(run_lib.run(
        _sdkBin('dartanalyzer'), quiet: quiet, arguments: ['--version'])).version;
  }
  
  /// Utility class for invoking `dartfmt` from the SDK. This wrapper requires
  
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]);
  