@@ -18,7 +18,7 @@ import { ExtractorMessage } from '../api/ExtractorMessage';
1818import { StringWriter } from './StringWriter' ;
1919import { DtsEmitHelpers } from './DtsEmitHelpers' ;
2020
21- export class ReviewFileGenerator {
21+ export class ApiReportGenerator {
2222 /**
2323 * Compares the contents of two API files that were created using ApiFileGenerator,
2424 * and returns true if they are equivalent. Note that these files are not normally edited
@@ -101,15 +101,15 @@ export class ReviewFileGenerator {
101101 messagesToReport . push ( message ) ;
102102 }
103103
104- stringWriter . write ( ReviewFileGenerator . _getAedocSynopsis ( collector , astDeclaration , messagesToReport ) ) ;
104+ stringWriter . write ( ApiReportGenerator . _getAedocSynopsis ( collector , astDeclaration , messagesToReport ) ) ;
105105
106106 const span : Span = new Span ( astDeclaration . declaration ) ;
107107
108108 const declarationMetadata : DeclarationMetadata = collector . fetchMetadata ( astDeclaration ) ;
109109 if ( declarationMetadata . isPreapproved ) {
110- ReviewFileGenerator . _modifySpanForPreapproved ( span ) ;
110+ ApiReportGenerator . _modifySpanForPreapproved ( span ) ;
111111 } else {
112- ReviewFileGenerator . _modifySpan ( collector , span , entity , astDeclaration , false ) ;
112+ ApiReportGenerator . _modifySpan ( collector , span , entity , astDeclaration , false ) ;
113113 }
114114
115115 span . writeModifiedText ( stringWriter . stringBuilder ) ;
@@ -121,7 +121,7 @@ export class ReviewFileGenerator {
121121 for ( const exportToEmit of exportsToEmit . values ( ) ) {
122122 // Write any associated messages
123123 for ( const message of exportToEmit . associatedMessages ) {
124- ReviewFileGenerator . _writeLineAsComments ( stringWriter ,
124+ ApiReportGenerator . _writeLineAsComments ( stringWriter ,
125125 'Warning: ' + message . formatMessageWithoutLocation ( ) ) ;
126126 }
127127
@@ -138,18 +138,18 @@ export class ReviewFileGenerator {
138138 . fetchUnassociatedMessagesForReviewFile ( ) ;
139139 if ( unassociatedMessages . length > 0 ) {
140140 stringWriter . writeLine ( ) ;
141- ReviewFileGenerator . _writeLineAsComments ( stringWriter , 'Warnings were encountered during analysis:' ) ;
142- ReviewFileGenerator . _writeLineAsComments ( stringWriter , '' ) ;
141+ ApiReportGenerator . _writeLineAsComments ( stringWriter , 'Warnings were encountered during analysis:' ) ;
142+ ApiReportGenerator . _writeLineAsComments ( stringWriter , '' ) ;
143143 for ( const unassociatedMessage of unassociatedMessages ) {
144- ReviewFileGenerator . _writeLineAsComments ( stringWriter , unassociatedMessage . formatMessageWithLocation (
144+ ApiReportGenerator . _writeLineAsComments ( stringWriter , unassociatedMessage . formatMessageWithLocation (
145145 collector . workingPackage . packageFolder
146146 ) ) ;
147147 }
148148 }
149149
150150 if ( collector . workingPackage . tsdocComment === undefined ) {
151151 stringWriter . writeLine ( ) ;
152- ReviewFileGenerator . _writeLineAsComments ( stringWriter , '(No @packageDocumentation comment for this package)' ) ;
152+ ApiReportGenerator . _writeLineAsComments ( stringWriter , '(No @packageDocumentation comment for this package)' ) ;
153153 }
154154
155155 // Write the closing delimiter for the Markdown code fence
@@ -294,16 +294,16 @@ export class ReviewFileGenerator {
294294 if ( ! insideTypeLiteral ) {
295295 const messagesToReport : ExtractorMessage [ ] = collector . messageRouter
296296 . fetchAssociatedMessagesForReviewFile ( childAstDeclaration ) ;
297- const aedocSynopsis : string = ReviewFileGenerator . _getAedocSynopsis ( collector , childAstDeclaration ,
297+ const aedocSynopsis : string = ApiReportGenerator . _getAedocSynopsis ( collector , childAstDeclaration ,
298298 messagesToReport ) ;
299- const indentedAedocSynopsis : string = ReviewFileGenerator . _addIndentAfterNewlines ( aedocSynopsis ,
299+ const indentedAedocSynopsis : string = ApiReportGenerator . _addIndentAfterNewlines ( aedocSynopsis ,
300300 child . getIndent ( ) ) ;
301301
302302 child . modification . prefix = indentedAedocSynopsis + child . modification . prefix ;
303303 }
304304 }
305305
306- ReviewFileGenerator . _modifySpan ( collector , child , entity , childAstDeclaration , insideTypeLiteral ) ;
306+ ApiReportGenerator . _modifySpan ( collector , child , entity , childAstDeclaration , insideTypeLiteral ) ;
307307 }
308308 }
309309 }
@@ -369,7 +369,7 @@ export class ReviewFileGenerator {
369369 const stringWriter : StringWriter = new StringWriter ( ) ;
370370
371371 for ( const message of messagesToReport ) {
372- ReviewFileGenerator . _writeLineAsComments ( stringWriter , 'Warning: ' + message . formatMessageWithoutLocation ( ) ) ;
372+ ApiReportGenerator . _writeLineAsComments ( stringWriter , 'Warning: ' + message . formatMessageWithoutLocation ( ) ) ;
373373 }
374374
375375 const declarationMetadata : DeclarationMetadata = collector . fetchMetadata ( astDeclaration ) ;
@@ -411,10 +411,10 @@ export class ReviewFileGenerator {
411411
412412 if ( footerParts . length > 0 ) {
413413 if ( messagesToReport . length > 0 ) {
414- ReviewFileGenerator . _writeLineAsComments ( stringWriter , '' ) ; // skip a line after the warnings
414+ ApiReportGenerator . _writeLineAsComments ( stringWriter , '' ) ; // skip a line after the warnings
415415 }
416416
417- ReviewFileGenerator . _writeLineAsComments ( stringWriter , footerParts . join ( ' ' ) ) ;
417+ ApiReportGenerator . _writeLineAsComments ( stringWriter , footerParts . join ( ' ' ) ) ;
418418 }
419419
420420 return stringWriter . toString ( ) ;
0 commit comments