@@ -735,6 +735,8 @@ class SymbolObject implements Symbol {
735
735
if ( context ) {
736
736
if ( isGetAccessor ( context ) ) {
737
737
if ( ! this . contextualGetAccessorDocumentationComment ) {
738
+ this . contextualGetAccessorDocumentationComment = emptyArray ; // Set temporarily to avoid an infinite loop finding inherited tags
739
+
738
740
this . contextualGetAccessorDocumentationComment = getDocumentationComment ( filter ( this . declarations , isGetAccessor ) , checker ) ;
739
741
}
740
742
if ( length ( this . contextualGetAccessorDocumentationComment ) ) {
@@ -743,6 +745,8 @@ class SymbolObject implements Symbol {
743
745
}
744
746
if ( isSetAccessor ( context ) ) {
745
747
if ( ! this . contextualSetAccessorDocumentationComment ) {
748
+ this . contextualSetAccessorDocumentationComment = emptyArray ; // Set temporarily to avoid an infinite loop finding inherited tags
749
+
746
750
this . contextualSetAccessorDocumentationComment = getDocumentationComment ( filter ( this . declarations , isSetAccessor ) , checker ) ;
747
751
}
748
752
if ( length ( this . contextualSetAccessorDocumentationComment ) ) {
@@ -766,6 +770,8 @@ class SymbolObject implements Symbol {
766
770
if ( context ) {
767
771
if ( isGetAccessor ( context ) ) {
768
772
if ( ! this . contextualGetAccessorTags ) {
773
+ this . contextualGetAccessorTags = emptyArray ; // Set temporarily to avoid an infinite loop finding inherited tags
774
+
769
775
this . contextualGetAccessorTags = getJsDocTagsOfDeclarations ( filter ( this . declarations , isGetAccessor ) , checker ) ;
770
776
}
771
777
if ( length ( this . contextualGetAccessorTags ) ) {
@@ -774,6 +780,8 @@ class SymbolObject implements Symbol {
774
780
}
775
781
if ( isSetAccessor ( context ) ) {
776
782
if ( ! this . contextualSetAccessorTags ) {
783
+ this . contextualSetAccessorTags = emptyArray ; // Set temporarily to avoid an infinite loop finding inherited tags
784
+
777
785
this . contextualSetAccessorTags = getJsDocTagsOfDeclarations ( filter ( this . declarations , isSetAccessor ) , checker ) ;
778
786
}
779
787
if ( length ( this . contextualSetAccessorTags ) ) {
0 commit comments