Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121835208
ImportContextDependency.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
Mon, Jul 14, 07:07
Size
1 KB
Mime Type
text/x-c++
Expires
Wed, Jul 16, 07:07 (2 d)
Engine
blob
Format
Raw Data
Handle
27399005
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
ImportContextDependency.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict"
;
const
makeSerializable
=
require
(
"../util/makeSerializable"
);
const
ContextDependency
=
require
(
"./ContextDependency"
);
const
ContextDependencyTemplateAsRequireCall
=
require
(
"./ContextDependencyTemplateAsRequireCall"
);
class
ImportContextDependency
extends
ContextDependency
{
constructor
(
options
,
range
,
valueRange
)
{
super
(
options
);
this
.
range
=
range
;
this
.
valueRange
=
valueRange
;
}
get
type
()
{
return
`
import
()
context
$
{
this
.
options
.
mode
}
`
;
}
get
category
()
{
return
"esm"
;
}
serialize
(
context
)
{
const
{
write
}
=
context
;
write
(
this
.
range
);
write
(
this
.
valueRange
);
super
.
serialize
(
context
);
}
deserialize
(
context
)
{
const
{
read
}
=
context
;
this
.
range
=
read
();
this
.
valueRange
=
read
();
super
.
deserialize
(
context
);
}
}
makeSerializable
(
ImportContextDependency
,
"webpack/lib/dependencies/ImportContextDependency"
);
ImportContextDependency
.
Template
=
ContextDependencyTemplateAsRequireCall
;
module
.
exports
=
ImportContextDependency
;
Event Timeline
Log In to Comment