Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101537461
declaration.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
Tue, Feb 11, 09:22
Size
495 B
Mime Type
text/x-c++
Expires
Thu, Feb 13, 09:22 (2 d)
Engine
blob
Format
Raw Data
Handle
24155951
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
declaration.js
View Options
'use strict'
let Node = require('./node')
class Declaration extends Node {
constructor(defaults) {
if (
defaults &&
typeof defaults.value !== 'undefined' &&
typeof defaults.value !== 'string'
) {
defaults = { ...defaults, value: String(defaults.value) }
}
super(defaults)
this.type = 'decl'
}
get variable() {
return this.prop.startsWith('--') || this.prop[0] === '$'
}
}
module.exports = Declaration
Declaration.default = Declaration
Event Timeline
Log In to Comment