ff02dd83685d825181e12e88b624e1e5b5fdcf1e
[dotfiles/.git] / atRuleParamIndex.js
1 /* @flow */
2 "use strict";
3 module.exports = function(atRule /*: postcss$atRule*/) /*: number*/ {
4   // Initial 1 is for the `@`
5   let index = 1 + atRule.name.length;
6   if (atRule.raws.afterName) {
7     index += atRule.raws.afterName.length;
8   }
9   return index;
10 };