@@ -42,34 +42,34 @@ export class AutoModeler {
4242 }
4343
4444 public async startModeling (
45- dependency : string ,
45+ packageName : string ,
4646 externalApiUsages : ExternalApiUsage [ ] ,
4747 modeledMethods : Record < string , ModeledMethod > ,
4848 mode : Mode ,
4949 ) : Promise < void > {
50- if ( this . jobs . has ( dependency ) ) {
50+ if ( this . jobs . has ( packageName ) ) {
5151 return ;
5252 }
5353
5454 const cancellationTokenSource = new CancellationTokenSource ( ) ;
55- this . jobs . set ( dependency , cancellationTokenSource ) ;
55+ this . jobs . set ( packageName , cancellationTokenSource ) ;
5656
5757 try {
58- await this . modelDependency (
59- dependency ,
58+ await this . modelPackage (
59+ packageName ,
6060 externalApiUsages ,
6161 modeledMethods ,
6262 mode ,
6363 cancellationTokenSource ,
6464 ) ;
6565 } finally {
66- this . jobs . delete ( dependency ) ;
66+ this . jobs . delete ( packageName ) ;
6767 }
6868 }
6969
70- public async stopModeling ( dependency : string ) : Promise < void > {
71- void extLogger . log ( `Stopping modeling for dependency ${ dependency } ` ) ;
72- const cancellationTokenSource = this . jobs . get ( dependency ) ;
70+ public async stopModeling ( packageName : string ) : Promise < void > {
71+ void extLogger . log ( `Stopping modeling for package ${ packageName } ` ) ;
72+ const cancellationTokenSource = this . jobs . get ( packageName ) ;
7373 if ( cancellationTokenSource ) {
7474 cancellationTokenSource . cancel ( ) ;
7575 }
@@ -81,14 +81,14 @@ export class AutoModeler {
8181 }
8282 }
8383
84- private async modelDependency (
85- dependency : string ,
84+ private async modelPackage (
85+ packageName : string ,
8686 externalApiUsages : ExternalApiUsage [ ] ,
8787 modeledMethods : Record < string , ModeledMethod > ,
8888 mode : Mode ,
8989 cancellationTokenSource : CancellationTokenSource ,
9090 ) : Promise < void > {
91- void extLogger . log ( `Modeling dependency ${ dependency } ` ) ;
91+ void extLogger . log ( `Modeling package ${ packageName } ` ) ;
9292 await withProgress ( async ( progress ) => {
9393 const maxStep = 3000 ;
9494
0 commit comments