anchor.diff:          sink.write("  static const core.String ${scopeName}_SCOPE = \"$scope\";\n");
         });
       }
  +  }
  +
  +  void _writeBrowserMainClass(StringSink sink) {
  +    sink.write("part of $_libraryBrowserName;\n\n");
  +    sink.write("/** Client to access the $_name $_version API */\n");
  +    if (_json.containsKey("description")) {
  +      sink.write("/** ${_json["description"]} */\n");
  +    }
  +    sink.write("class ${capitalize(_name)} extends BrowserClient {\n");
  +    _writeScopes(sink);
       sink.writeln();
       sink.writeln('  final oauth.OAuth2 auth;');
       sink.writeln();
  
positive.code:     }
    }
  
    void _writeBrowserMainClass(StringSink sink) {
      sink.write("part of $_libraryBrowserName;\n\n");
      sink.write("/** Client to access the $_name $_version API */\n");
      if (_json.containsKey("description")) {
        sink.write("/** ${_json["description"]} */\n");
      }
      sink.write("class ${capitalize(_name)} extends BrowserClient {\n");
      if(_json.containsKey("auth") && _json["auth"].containsKey("oauth2") && _json["auth"]["oauth2"].containsKey("scopes")) {
        _json["auth"]["oauth2"]["scopes"].forEach((scope, description) {
          var p = scope.lastIndexOf("/");
  
negative.code:       sink.write("/** ${_json["description"]} */\n");
      }
      sink.write("class ${capitalize(_name)} extends ConsoleClient {\n");
      _writeScopes(sink);
  
      sink.writeln();
      sink.writeln('  final oauth2.OAuth2Console auth;');
  