Sign in
apache
/
nifi-fds
/
6435e394f6c7c31d3f61a4bfc9702bde2a1659fa
/
.
/
node_modules
/
stylelint
/
lib
/
utils
/
atRuleParamIndex.js
blob: 6480a23a5ec2256fdd6276850ac2fbd85eae1a7f [
file
] [
log
] [
blame
]
/* @flow */
"use strict"
;
module
.
exports
=
function
(
atRule
/*: postcss$atRule*/
)
/*: number*/
{
// Initial 1 is for the `@`
let index
=
1
+
atRule
.
name
.
length
;
if
(
atRule
.
raws
.
afterName
)
{
index
+=
atRule
.
raws
.
afterName
.
length
;
}
return
index
;
};