You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
439 B

'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;