anchor.diff:    /// Creates a document which resolves comment references as stemming from
     /// [element].
     factory MarkdownDocument.withElementLinkResolver(Warnable element) {
  -    md.Node? linkResolver(String name, [String? _]) {
  -      if (name.isEmpty) {
  -        return null;
  -      }
  -      return _makeLinkNode(name, element);
  -    }
  -
  -    return MarkdownDocument(
  +    return MarkdownDocument._(
         inlineSyntaxes: _markdownSyntaxes,
         blockSyntaxes: _markdownBlockSyntaxes,
  -      linkResolver: linkResolver,
  +      linkResolver: (String name, [String? _]) => _makeLinkNode(name, element),
       );
     }
   
  +  @Deprecated("MarkdownDocument's unnamed constructor is deprecated. Use "
  +      '[MarkdownDocument.withElementLinkResolver]')
     MarkdownDocument({
  +    Iterable<md.BlockSyntax>? blockSyntaxes,
  +    Iterable<md.InlineSyntax>? inlineSyntaxes,
  +    md.ExtensionSet? extensionSet,
  +    md.Resolver? linkResolver,
  +    md.Resolver? imageLinkResolver,
  +  }) : this._(
  +          blockSyntaxes: blockSyntaxes,
  +          inlineSyntaxes: inlineSyntaxes,
  +          extensionSet: extensionSet,
  +          linkResolver: linkResolver,
  +          imageLinkResolver: imageLinkResolver,
  +        );
  +
  +  MarkdownDocument._({
       super.blockSyntaxes,
       super.inlineSyntaxes,
       super.extensionSet,
  
positive.code:       }
      }
    }
  }
  
  class _InlineCodeSyntax extends md.InlineSyntax {
  
negative.code:   return MatchingLinkResult(lookupResult);
  }
  
  /// Creates a [MatchingLinkResult] for [referenceText], the text of a doc
  /// comment reference found in the doc comment attached to [element].
  @visibleForTesting
  