ccc-tnt-psd2ui/npm-packages/mac-v3.4.+/postcss/lib/at-rule.js

26 lines
471 B
JavaScript
Raw Normal View History

2023-07-24 03:13:08 +00:00
'use strict'
let Container = require('./container')
class AtRule extends Container {
constructor(defaults) {
super(defaults)
this.type = 'atrule'
}
append(...children) {
if (!this.proxyOf.nodes) this.nodes = []
return super.append(...children)
}
prepend(...children) {
if (!this.proxyOf.nodes) this.nodes = []
return super.prepend(...children)
}
}
module.exports = AtRule
AtRule.default = AtRule
Container.registerAtRule(AtRule)