WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/dependencies/ConstDependency.js
@@ -22,6 +22,7 @@
class ConstDependency extends NullDependency {
   /**
    * Creates an instance of ConstDependency.
    * @param {string} expression the expression
    * @param {number | Range} range the source range
    * @param {RawRuntimeRequirements | null=} runtimeRequirements runtime requirements
@@ -33,11 +34,12 @@
      this.runtimeRequirements = runtimeRequirements
         ? new Set(runtimeRequirements)
         : null;
      /** @type {undefined | string} */
      this._hashUpdate = undefined;
   }
   /**
    * Update the hash
    * Updates the hash with the data contributed by this instance.
    * @param {Hash} hash hash to be updated
    * @param {UpdateHashContext} context context
    * @returns {void}
@@ -57,6 +59,7 @@
   }
   /**
    * Gets module evaluation side effects state.
    * @param {ModuleGraph} moduleGraph the module graph
    * @returns {ConnectionState} how this dependency connects the module to referencing modules
    */
@@ -65,6 +68,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -76,6 +80,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {
@@ -93,6 +98,7 @@
   NullDependency.Template
) {
   /**
    * Applies the plugin by registering its hooks on the compiler.
    * @param {Dependency} dependency the dependency for which the template should be applied
    * @param {ReplaceSource} source the current replace source which can be modified
    * @param {DependencyTemplateContext} templateContext the context object