Skip to content

Commit 260531d

Browse files
JeanMechepkozlowski-opensource
authored andcommitted
refactor(compiler-cli): escape missing decorators. (angular#56794)
Escaping decorators is required as else they are considered as new JSDocs tags. fixes angular#56569 PR Close angular#56794
1 parent fe52d8f commit 260531d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {JsDocTagEntry} from './entities';
1515
* decorators in JsDoc blocks so that they're not parsed as JsDoc tags.
1616
*/
1717
const decoratorExpression =
18-
/@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf))/g;
18+
/@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf|ViewChild|ViewChildren|ContentChild|ContentChildren))/g;
1919

2020
/** Gets the set of JsDoc tags applied to a node. */
2121
export function extractJsDocTags(node: ts.HasJSDoc): JsDocTagEntry[] {

0 commit comments

Comments
 (0)