Closed shellscape closed 8 years ago
Requesting a small improvement to the AtRule type. When parsing @rule(); or @rule; it would be great to have a convenience property shared with regular Rule types; node.ruleWithoutBody. Presently we're having to frequently use:
AtRule
@rule();
@rule;
Rule
node.ruleWithoutBody
(node.type === 'atrule' && (!node.nodes || (node.nodes && node.nodes.length === 0)))
which works, but it gets messy. Any chance of adding that property to AtRule nodes as well?
Crap. I just commented on the wrong repo. Apologies!
No problem! ^_^
Requesting a small improvement to the
AtRule
type. When parsing@rule();
or@rule;
it would be great to have a convenience property shared with regularRule
types;node.ruleWithoutBody
. Presently we're having to frequently use:(node.type === 'atrule' && (!node.nodes || (node.nodes && node.nodes.length === 0)))
which works, but it gets messy. Any chance of adding that property to
AtRule
nodes as well?