@@ -11,7 +11,9 @@ import 'delimiter_syntax.dart';
1111import 'footnote_ref_syntax.dart' ;
1212
1313/// A helper class holds params of link context.
14- /// Footnote creation needs other info in [_tryCreateReferenceLink] .
14+ // Footnote creation needs other info in [LinkSyntax._tryCreateReferenceLink].
15+ // TODO(kevmoo): this type should be private. Ideally a Record.
16+ @Deprecated ('Implementation class that should not be used directly.' )
1517class LinkContext {
1618 final InlineParser parser;
1719 final SimpleDelimiter opener;
@@ -202,8 +204,8 @@ class LinkSyntax extends DelimiterSyntax {
202204
203205 /// Parse a reference link label at the current position.
204206 ///
205- /// Specifically, [parser .pos] is expected to be pointing at the `[` which
206- /// opens the link label.
207+ /// Specifically, [InlineParser .pos] is expected to be pointing at the
208+ /// `[` which opens the link label.
207209 ///
208210 /// Returns the label if it could be parsed, or `null` if not.
209211 String ? _parseReferenceLinkLabel (InlineParser parser) {
@@ -245,7 +247,8 @@ class LinkSyntax extends DelimiterSyntax {
245247 /// Parse an inline [InlineLink] at the current position.
246248 ///
247249 /// At this point, we have parsed a link's (or image's) opening `[` , and then
248- /// a matching closing `]` , and [parser.pos] is pointing at an opening `(` .
250+ /// a matching closing `]` , and [InlineParser.pos] is pointing at an opening
251+ /// `(` .
249252 /// This method will then attempt to parse a link destination wrapped in `<>` ,
250253 /// such as `(<http://url>)` , or a bare link destination, such as
251254 /// `(http://url)` , or a link destination with a title, such as
0 commit comments