File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3250,8 +3250,7 @@ abstract class ModelElement extends Canonicalization
3250
3250
3251
3251
/// Separate from _buildDocumentationLocal for overriding.
3252
3252
String _buildDocumentationBaseSync () {
3253
- // Prevent reentrancy.
3254
- assert (_rawDocs == null );
3253
+ assert (_rawDocs == null , 'reentrant calls to _buildDocumentation* not allowed' );
3255
3254
// Do not use the sync method if we need to evaluate tools or templates.
3256
3255
assert (! isCanonical ||
3257
3256
! needsPrecacheRegExp.hasMatch (documentationComment ?? '' ));
@@ -3271,8 +3270,7 @@ abstract class ModelElement extends Canonicalization
3271
3270
/// Separate from _buildDocumentationLocal for overriding. Can only be
3272
3271
/// used as part of [PackageGraph.setUpPackageGraph] .
3273
3272
Future <String > _buildDocumentationBase () async {
3274
- // Prevent reentrancy.
3275
- assert (_rawDocs == null );
3273
+ assert (_rawDocs == null , 'reentrant calls to _buildDocumentation* not allowed' );
3276
3274
// Do not use the sync method if we need to evaluate tools or templates.
3277
3275
if (config.dropTextFrom.contains (element.library.name)) {
3278
3276
_rawDocs = '' ;
You can’t perform that action at this time.
0 commit comments