Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101472368
result.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, Feb 10, 19:09
Size
745 B
Mime Type
text/x-c++
Expires
Wed, Feb 12, 19:09 (2 d)
Engine
blob
Format
Raw Data
Handle
24155719
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
result.js
View Options
'use strict'
let
Warning
=
require
(
'./warning'
)
class
Result
{
constructor
(
processor
,
root
,
opts
)
{
this
.
processor
=
processor
this
.
messages
=
[]
this
.
root
=
root
this
.
opts
=
opts
this
.
css
=
undefined
this
.
map
=
undefined
}
toString
()
{
return
this
.
css
}
warn
(
text
,
opts
=
{})
{
if
(
!
opts
.
plugin
)
{
if
(
this
.
lastPlugin
&&
this
.
lastPlugin
.
postcssPlugin
)
{
opts
.
plugin
=
this
.
lastPlugin
.
postcssPlugin
}
}
let
warning
=
new
Warning
(
text
,
opts
)
this
.
messages
.
push
(
warning
)
return
warning
}
warnings
()
{
return
this
.
messages
.
filter
(
i
=>
i
.
type
===
'warning'
)
}
get
content
()
{
return
this
.
css
}
}
module
.
exports
=
Result
Result
.
default
=
Result
Event Timeline
Log In to Comment