Files
agentic-labs-challenge-subm…/adaptive-loop/node_modules/postcss/lib/declaration.js
T
AlexKucera 00f4c34da0 (Adaptive Loop) Pass 3
(Adaptive Loop) Record freeze commit hash in context manifest
2026-08-13 15:23:35 +02:00

25 lines
495 B
JavaScript

'use strict'
let Node = require('./node')
class Declaration extends Node {
get variable() {
return this.prop.startsWith('--') || this.prop[0] === '$'
}
constructor(defaults) {
if (
defaults &&
typeof defaults.value !== 'undefined' &&
typeof defaults.value !== 'string'
) {
defaults = { ...defaults, value: String(defaults.value) }
}
super(defaults)
this.type = 'decl'
}
}
module.exports = Declaration
Declaration.default = Declaration