Skip to content

Commit 9596415

Browse files
authored
Remove @api directive. (#3566)
1 parent 10e2cfc commit 9596415

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/src/model/directives/categorization.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:dartdoc/src/model/model.dart';
77
import 'package:meta/meta.dart';
88

99
final RegExp _categoryRegExp = RegExp(
10-
r'[ ]*{@(api|category|subCategory|image|samples) (.+?)}[ ]*\n?',
10+
r'[ ]*{@(category|subCategory|image|samples) (.+?)}[ ]*\n?',
1111
multiLine: true);
1212

1313
/// Mixin parsing the `@category` directive for ModelElements.
@@ -28,7 +28,6 @@ mixin Categorization on DocumentationComment implements Indexable {
2828
_hasCategorization = true;
2929
switch (match[1]) {
3030
case 'category':
31-
case 'api':
3231
categorySet.add(match[2]!.trim());
3332
case 'subCategory':
3433
subCategorySet.add(match[2]!.trim());

lib/src/model/documentation_comment.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ mixin DocumentationComment
158158
'youtube',
159159

160160
// Other directives, parsed by `model/directives/*.dart`:
161-
'api',
162161
'canonicalFor',
163162
'category',
164163
'hideConstantImplementations',

0 commit comments

Comments
 (0)