Skip to content

Commit b01fcf3

Browse files
committed
Review comments
1 parent 7dc53ed commit b01fcf3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/src/model.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3250,8 +3250,7 @@ abstract class ModelElement extends Canonicalization
32503250

32513251
/// Separate from _buildDocumentationLocal for overriding.
32523252
String _buildDocumentationBaseSync() {
3253-
// Prevent reentrancy.
3254-
assert(_rawDocs == null);
3253+
assert(_rawDocs == null, 'reentrant calls to _buildDocumentation* not allowed');
32553254
// Do not use the sync method if we need to evaluate tools or templates.
32563255
assert(!isCanonical ||
32573256
!needsPrecacheRegExp.hasMatch(documentationComment ?? ''));
@@ -3271,8 +3270,7 @@ abstract class ModelElement extends Canonicalization
32713270
/// Separate from _buildDocumentationLocal for overriding. Can only be
32723271
/// used as part of [PackageGraph.setUpPackageGraph].
32733272
Future<String> _buildDocumentationBase() async {
3274-
// Prevent reentrancy.
3275-
assert(_rawDocs == null);
3273+
assert(_rawDocs == null, 'reentrant calls to _buildDocumentation* not allowed');
32763274
// Do not use the sync method if we need to evaluate tools or templates.
32773275
if (config.dropTextFrom.contains(element.library.name)) {
32783276
_rawDocs = '';

0 commit comments

Comments
 (0)