| Index: pkg/docgen/lib/docgen.dart
|
| diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart
|
| index bca15b6f0def7788d96289be2171d5bb9d8442c0..b67a321e5d309796d9614b00f60b8aa1d7c957dd 100644
|
| --- a/pkg/docgen/lib/docgen.dart
|
| +++ b/pkg/docgen/lib/docgen.dart
|
| @@ -37,6 +37,11 @@ var logger = new Logger('Docgen');
|
|
|
| const String USAGE = 'Usage: dart docgen.dart [OPTIONS] [fooDir/barFile]';
|
|
|
| +
|
| +List<String> validAnnotations = const ['metadata.Experimental',
|
| + 'metadata.DomName', 'metadata.Deprecated', 'metadata.Unstable',
|
| + 'meta.deprecated', 'metadata.SupportedBrowser'];
|
| +
|
| /// Current library being documented to be used for comment links.
|
| LibraryMirror _currentLibrary;
|
|
|
| @@ -318,8 +323,10 @@ List<String> _annotations(DeclarationMirror mirror) {
|
| .map((e) => annotation.getField(e.simpleName).reflectee)
|
| .where((e) => e != null)
|
| .toList();
|
| - annotations.add(new Annotation(annotation.type.qualifiedName,
|
| - parameterList));
|
| + if (validAnnotations.contains(annotation.type.qualifiedName)) {
|
| + annotations.add(new Annotation(annotation.type.qualifiedName,
|
| + parameterList));
|
| + }
|
| });
|
| return annotations;
|
| }
|
|
|