lib/actions/balance.js
function selectionRangesForCSSNode(node) {
	const ranges = [new Range(node.start, node.end)];

	if (node.type === 'property' && node.valueToken) {
		ranges.push(new Range(node.valueToken.start, node.valueToken.end));
	} else if (node.type === 'rule' || node.type === 'at-rule') {
		ranges.push(new Range(node.contentStartToken.end, node.contentEndToken.start));
	}

	return ranges;
}
function selectionRangesForCSSNode(node) {
	const ranges = [new Range(node.start, node.end)];

	if (node.type === 'property' && node.valueToken) {
		ranges.push(new Range(node.valueToken.start, node.valueToken.end));
	} else if (node.type === 'rule' || node.type === 'at-rule') {
		ranges.push(new Range(node.contentStartToken.end, node.contentEndToken.start));
	}

	return ranges;
}
function selectionRangesForCSSNode ( node ) { const ranges = [ new Range ( node . start , node . end ) ] ; if ( node . type === 'property' && node . valueToken ) { ranges . push ( new Range ( node . valueToken . start , node . valueToken . end ) ) ; } else if ( node . type === 'rule' || node . type === 'at-rule' ) { ranges . push ( new Range ( node . contentStartToken . end , node . contentEndToken . start ) ) ; } return ranges ; }
Returns possible selection ranges for given CSS node, from outer to inner
@param  {Node} node
@return {Range[]}
Returns possible selection ranges for given CSS node from outer to inner