WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/dependencies/ModuleDependency.js
@@ -17,6 +17,7 @@
class ModuleDependency extends Dependency {
   /**
    * Creates an instance of ModuleDependency.
    * @param {string} request request path which needs resolving
    * @param {number=} sourceOrder source order
    */
@@ -27,10 +28,12 @@
      this.sourceOrder = sourceOrder;
      /** @type {Range | undefined} */
      this.range = undefined;
      /** @type {undefined | string} */
      this._context = undefined;
   }
   /**
    * Returns a request context.
    * @returns {string | undefined} a request context
    */
   getContext() {
@@ -38,6 +41,7 @@
   }
   /**
    * Returns an identifier to merge equal requests.
    * @returns {string | null} an identifier to merge equal requests
    */
   getResourceIdentifier() {
@@ -45,6 +49,7 @@
   }
   /**
    * Could affect referencing module.
    * @returns {boolean | TRANSITIVE} true, when changes to the referenced module could affect the referencing module; TRANSITIVE, when changes to the referenced module could affect referencing modules of the referencing module
    */
   couldAffectReferencingModule() {
@@ -52,6 +57,7 @@
   }
   /**
    * Creates an ignored module.
    * @param {string} context context directory
    * @returns {Module} ignored module
    */
@@ -68,6 +74,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -81,6 +88,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {