@@ -12,15 +12,15 @@ import Extractor from '../Extractor';
1212import ResolvedApiItem from '../ResolvedApiItem' ;
1313
1414/**
15- * An "API Tag " is a custom JSDoc tag which indicates whether an ApiItem definition
15+ * A "release tag " is a custom JSDoc tag which indicates whether an ApiItem definition
1616 * is considered Public API for third party developers, as well as its release
1717 * stage (alpha, beta, etc).
1818 * @see https://onedrive.visualstudio.com/DefaultCollection/SPPPlat/_git/sp-client
1919 * ?path=/common/docs/ApiPrinciplesAndProcess.md
2020 */
2121export enum ReleaseTag {
2222 /**
23- * No API Tag was specified in the JSDoc summary.
23+ * No release tag was specified in the JSDoc summary.
2424 */
2525 None = 0 ,
2626 /**
@@ -145,7 +145,7 @@ export default class ApiDocumentation {
145145 public incompleteInheritdocs : Token [ ] ;
146146
147147 /**
148- * An "API Tag " is a custom JSDoc tag which indicates whether this definition
148+ * A "release tag " is a custom JSDoc tag which indicates whether this definition
149149 * is considered Public API for third party developers, as well as its release
150150 * stage (alpha, beta, etc).
151151 */
@@ -223,7 +223,7 @@ export default class ApiDocumentation {
223223 const tokenizer : Tokenizer = new Tokenizer ( this . originalJsDoc , this . reportError ) ;
224224 this . summary = DocElementParser . parse ( this , tokenizer ) ;
225225
226- let apiTagCount : number = 0 ;
226+ let releaseTagCount : number = 0 ;
227227 let parsing : boolean = true ;
228228
229229 while ( parsing ) {
@@ -275,22 +275,22 @@ export default class ApiDocumentation {
275275 case '@public' :
276276 tokenizer . getToken ( ) ;
277277 this . releaseTag = ReleaseTag . Public ;
278- ++ apiTagCount ;
278+ ++ releaseTagCount ;
279279 break ;
280280 case '@internal' :
281281 tokenizer . getToken ( ) ;
282282 this . releaseTag = ReleaseTag . Internal ;
283- ++ apiTagCount ;
283+ ++ releaseTagCount ;
284284 break ;
285285 case '@alpha' :
286286 tokenizer . getToken ( ) ;
287287 this . releaseTag = ReleaseTag . Alpha ;
288- ++ apiTagCount ;
288+ ++ releaseTagCount ;
289289 break ;
290290 case '@beta' :
291291 tokenizer . getToken ( ) ;
292292 this . releaseTag = ReleaseTag . Beta ;
293- ++ apiTagCount ;
293+ ++ releaseTagCount ;
294294 break ;
295295 case '@preapproved' :
296296 tokenizer . getToken ( ) ;
@@ -337,8 +337,8 @@ export default class ApiDocumentation {
337337 }
338338 }
339339
340- if ( apiTagCount > 1 ) {
341- this . reportError ( 'More than one API Tag was specified' ) ;
340+ if ( releaseTagCount > 1 ) {
341+ this . reportError ( 'More than one release tag was specified' ) ;
342342 }
343343
344344 if ( this . preapproved && this . releaseTag !== ReleaseTag . Internal ) {
0 commit comments