@@ -8,9 +8,9 @@ import 'package:dartdoc/src/warnings.dart';
88import 'package:markdown/markdown.dart' as md;
99
1010class Documentation {
11- final Warnable _element ;
11+ final Warnable _warnable ;
1212
13- Documentation .forElement (this ._element );
13+ Documentation .forElement (this ._warnable );
1414
1515 /// The documentation text, rendered with the appropriate
1616 /// [DocumentationRenderer] .
@@ -38,10 +38,10 @@ class Documentation {
3838 // set one. We have this awkward check to make sure we set both fields if
3939 // we'll need both fields.
4040 assert (
41- _element .isCanonical,
42- "generating docs for non-canonical element: '$_element ' "
43- "('${_element .runtimeType }', ${_element .hashCode }), representing "
44- "'${_element .element2 }'" ,
41+ _warnable .isCanonical,
42+ "generating docs for non-canonical element: '$_warnable ' "
43+ "('${_warnable .runtimeType }', ${_warnable .hashCode }), representing "
44+ "'${_warnable .element2 }'" ,
4545 );
4646 return _asHtml;
4747 }
@@ -55,7 +55,7 @@ class Documentation {
5555 if (_hasOneLinerBeenRendered || _hasHtmlBeenRendered) {
5656 return _asOneLiner;
5757 }
58- _renderDocumentation (storeFullText: _element .isCanonical);
58+ _renderDocumentation (storeFullText: _warnable .isCanonical);
5959 _hasOneLinerBeenRendered = true ;
6060 return _asOneLiner;
6161 }
@@ -65,7 +65,7 @@ class Documentation {
6565
6666 var renderResult = _renderer.render (parseResult,
6767 processFullDocs: storeFullText,
68- sanitizeHtml: _element .config.sanitizeHtml);
68+ sanitizeHtml: _warnable .config.sanitizeHtml);
6969
7070 if (storeFullText) {
7171 _asHtml = renderResult.asHtml;
@@ -74,12 +74,12 @@ class Documentation {
7474 }
7575
7676 List <md.Node > _parseDocumentation ({required bool processFullText}) {
77- final text = _element .documentation;
77+ final text = _warnable .documentation;
7878 if (text == null || text.isEmpty) {
7979 return const [];
8080 }
81- showWarningsForGenericsOutsideSquareBracketsBlocks (text, _element );
82- var document = MarkdownDocument .withElementLinkResolver (_element );
81+ showWarningsForGenericsOutsideSquareBracketsBlocks (text, _warnable );
82+ var document = MarkdownDocument .withElementLinkResolver (_warnable );
8383 return document.parseMarkdownText (text, processFullText: processFullText);
8484 }
8585
0 commit comments