You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @returns {boolean} true, when the module is used in any way
375
+
*/
370
376
isUsed(runtime){
371
377
if(this._redirectTo!==undefined){
372
378
if(this._redirectTo.isUsed(runtime)){
@@ -388,6 +394,10 @@ class ExportsInfo {
388
394
returnfalse;
389
395
}
390
396
397
+
/**
398
+
* @param {RuntimeSpec} runtime the runtime
399
+
* @returns {SortableSet<string> | boolean | null} set of used exports, or true (when namespace object is used), or false (when unused), or null (when unknown)
400
+
*/
391
401
getUsedExports(runtime){
392
402
if(!this._redirectTo!==undefined){
393
403
switch(this._otherExportsInfo.getUsed(runtime)){
@@ -473,6 +483,10 @@ class ExportsInfo {
473
483
returnarray;
474
484
}
475
485
486
+
/**
487
+
* @param {RuntimeSpec} runtime the runtime
488
+
* @returns {boolean} true, when the module has enough information to create a list of exports
489
+
*/
476
490
hasStaticExportsList(runtime){
477
491
if(
478
492
this._redirectTo!==undefined&&
@@ -610,6 +624,11 @@ class ExportsInfo {
610
624
}
611
625
}
612
626
627
+
/**
628
+
* @param {Hash} hash the hash
629
+
* @param {RuntimeSpec} runtime the runtime
630
+
* @returns {void}
631
+
*/
613
632
updateHash(hash,runtime){
614
633
for(constexportInfoofthis.orderedExports){
615
634
exportInfo.updateHash(hash,runtime);
@@ -759,6 +778,10 @@ class ExportInfo {
759
778
);
760
779
}
761
780
781
+
/**
782
+
* @param {RuntimeSpec} runtime only apply to this runtime
783
+
* @returns {boolean} true, when something changed
784
+
*/
762
785
setUsedInUnknownWay(runtime){
763
786
letchanged=false;
764
787
if(
@@ -777,6 +800,10 @@ class ExportInfo {
777
800
returnchanged;
778
801
}
779
802
803
+
/**
804
+
* @param {RuntimeSpec} runtime only apply to this runtime
805
+
* @returns {boolean} true, when something changed
806
+
*/
780
807
setUsedWithoutInfo(runtime){
781
808
letchanged=false;
782
809
if(this.setUsed(UsageState.NoInfo,runtime)){
@@ -804,27 +831,35 @@ class ExportInfo {
804
831
/**
805
832
* @param {function(UsageStateType): boolean} condition compare with old value
806
833
* @param {UsageStateType} newValue set when condition is true
807
-
* @param {string} runtime only apply to this runtime
834
+
* @param {RuntimeSpec} runtime only apply to this runtime
808
835
* @returns {boolean} true when something has changed
0 commit comments