WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/dependencies/PureExpressionDependency.js
@@ -25,6 +25,7 @@
class PureExpressionDependency extends NullDependency {
   /**
    * Creates an instance of PureExpressionDependency.
    * @param {Range} range the source range
    */
   constructor(range) {
@@ -35,6 +36,7 @@
   }
   /**
    * Get runtime condition.
    * @param {ModuleGraph} moduleGraph module graph
    * @param {RuntimeSpec} runtime current runtimes
    * @returns {boolean | RuntimeSpec} runtime condition
@@ -60,7 +62,7 @@
   }
   /**
    * 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}
@@ -85,6 +87,7 @@
   }
   /**
    * Gets module evaluation side effects state.
    * @param {ModuleGraph} moduleGraph the module graph
    * @returns {ConnectionState} how this dependency connects the module to referencing modules
    */
@@ -93,6 +96,7 @@
   }
   /**
    * Serializes this instance into the provided serializer context.
    * @param {ObjectSerializerContext} context context
    */
   serialize(context) {
@@ -103,6 +107,7 @@
   }
   /**
    * Restores this instance from the provided deserializer context.
    * @param {ObjectDeserializerContext} context context
    */
   deserialize(context) {
@@ -122,6 +127,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