lix-website/themes/lix/assets/bootstrap/node_modules/@stylelint/postcss-css-in-js/object.js

25 lines
439 B
JavaScript
Raw Normal View History

2024-04-27 03:39:10 +00:00
'use strict';
const Container = require('postcss/lib/container');
/**
* Represents a JS Object Literal
*
* @extends Container
*
* @example
* const root = postcss.parse('{}');
* const obj = root.first;
* obj.type //=> 'object'
* obj.toString() //=> '{}'
*/
class ObjectLiteral extends Container {
constructor(defaults) {
super(defaults);
this.type = 'object';
this.nodes = [];
}
}
module.exports = ObjectLiteral;