From 5fb0b567ce8c6f29a49a305c9fa41b3ddcdf9a25 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Wed, 16 May 2018 16:20:51 +0100 Subject: [PATCH] build(aio): don't render `@Annotation` tags (#24000) Because we were "ignoring" these tags they were being rendered as part of the previous tag. What we really want to do is know about them, so that we don't break the doc-gen but then ignore them when rendering. PR Close #24000 --- .../transforms/angular-api-package/tag-defs/Annotation.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aio/tools/transforms/angular-api-package/tag-defs/Annotation.js b/aio/tools/transforms/angular-api-package/tag-defs/Annotation.js index 4e9c8714cb..49f55d5eec 100644 --- a/aio/tools/transforms/angular-api-package/tag-defs/Annotation.js +++ b/aio/tools/transforms/angular-api-package/tag-defs/Annotation.js @@ -1,4 +1,5 @@ -// A ts2dart compiler annotation that can be ignored in API docs. +// A ts2dart compiler annotation that we don't care about for API docs. +// But, if we don't have a tag-def for it the doc-gen will error. module.exports = function() { - return {name: 'Annotation', ignore: true}; + return {name: 'Annotation'}; };