Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105274605
NullDependency.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Mar 15, 23:13
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Mar 17, 23:13 (2 d)
Engine
blob
Format
Raw Data
Handle
24956910
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
NullDependency.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict"
;
const
Dependency
=
require
(
"../Dependency"
);
const
DependencyTemplate
=
require
(
"../DependencyTemplate"
);
/** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */
/** @typedef {import("../ChunkGraph")} ChunkGraph */
/** @typedef {import("../Dependency").UpdateHashContext} UpdateHashContext */
/** @typedef {import("../DependencyTemplate").DependencyTemplateContext} DependencyTemplateContext */
/** @typedef {import("../ModuleGraph")} ModuleGraph */
/** @typedef {import("../util/Hash")} Hash */
class
NullDependency
extends
Dependency
{
get
type
()
{
return
"null"
;
}
/**
* Update the hash
* @param {Hash} hash hash to be updated
* @param {UpdateHashContext} context context
* @returns {void}
*/
updateHash
(
hash
,
context
)
{}
serialize
({
write
})
{
write
(
this
.
loc
);
}
deserialize
({
read
})
{
this
.
loc
=
read
();
}
}
NullDependency
.
Template
=
class
NullDependencyTemplate
extends
(
DependencyTemplate
)
{
/**
* @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
* @returns {void}
*/
apply
(
dependency
,
source
,
templateContext
)
{}
};
module
.
exports
=
NullDependency
;
Event Timeline
Log In to Comment