anchor.diff:    return annotations;
   }
   
  +/// Update the global pointers to the current mirror to the particular mirror
  +/// we're documenting.
  +void _updateCurrentMirror(DeclarationMirror mirror) {
  +  if (mirror is LibraryMirror) {
  +    _currentLibrary = mirror;
  +  } else if (mirror is ClassMirror) {
  +    _currentClass = mirror;
  +  } else if (mirror is MethodMirror) {
  +    _currentMember = mirror;
  +  }
  +}
  +
   /// Returns any documentation comments associated with a mirror with
   /// simple markdown converted to html.
   String _commentToHtml(DeclarationMirror mirror) {
     String commentText;
  +  _updateCurrentMirror(mirror);
     mirror.metadata.forEach((metadata) {
       if (metadata is CommentInstanceMirror) {
         CommentInstanceMirror comment = metadata;
  
positive.code: Library generateLibrary(dart2js.Dart2JsLibraryMirror library) {
    _currentLibrary = library;
    var result = new Library(docName(library), _commentToHtml(library),
        _variables(library.variables),
        _methods(library.functions),
        _classes(library.classes), _isHidden(library));
    _findPackage(result, library);
    logger.fine('Generated library for ${result.name}');
    return result;
  
negative.code:     return basic;
    }
  
    Library(String name, String comment, this.classes, this.functions,
        this.variables, bool isPrivate) : super(name, comment,
            isPrivate, "");
  
    /// Generates a map describing the [Library] object.
  