Sha256: 1a16f193814168ca7c7526133f0eec0526de6eed9c38c105b9c46d76c1101539
Contents?: true
Size: 495 Bytes
Versions: 27
Compression:
Stored size: 495 Bytes
Contents
'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
Version data entries
27 entries across 27 versions & 2 rubygems