anchor.diff:    Map<String, Typedef> typedefs = {};
     Map<String, Class> errors = {};
   
  -  void addClass(ClassMirror mirror) {
  -    _currentClass = mirror;
  -    if (mirror.isTypedef) {
  +  void addClass(ClassMirror classMirror) {
  +    if (classMirror.isTypedef) {
         // This is actually a Dart2jsTypedefMirror, and it does define value,
         // but we don't have visibility to that type.
  -      var mirror = _currentClass;
  +      var mirror = classMirror;
         if (_includePrivate || !mirror.isPrivate) {
           entityMap[docName(mirror)] = new Typedef(mirror.simpleName,
  -            docName(mirror.value.returnType), _commentToHtml(mirror),
  +            docName(mirror.value.returnType),
  +            (actualTypedef) => _commentToHtml(mirror, actualTypedef),
               _generics(mirror), _parameters(mirror.value.parameters),
               _annotations(mirror), docName(mirror),  _isHidden(mirror),
  -            docName(mirror.owner));
  +            docName(mirror.owner), mirror);
           typedefs[mirror.simpleName] = entityMap[docName(mirror)];
         }
       } else {
  -      var clazz = _class(mirror);
  +      var clazz = _class(classMirror);
   
         // Adding inherited parent variables and methods.
         clazz.parent().forEach((parent) {
  
positive.code: 
    /// Makes sure that all methods with inherited equivalents have comments.
    void ensureComments() {
      inheritedMethods.forEach((qualifiedName, inheritedMethod) {
        var method = methods[qualifiedName];
        if (method != null) method.ensureCommentFor(inheritedMethod);
  
negative.code:   return annotations;
  }
  
  /// Returns any documentation comments associated with a mirror with
  /// simple markdown converted to html.
  ///
  /// It's possible to have a comment that comes from one mirror applied to
  /// another, in the case of an inherited comment.
  String _commentToHtml(DeclarationMirror mirror, [DeclarationMirror appliedTo]) {
    if (appliedTo == null) appliedTo = mirror;
    String commentText;
    mirror.metadata.forEach((metadata) {
      if (metadata is CommentInstanceMirror) {
        CommentInstanceMirror comment = metadata;
  