Skip to content

Commit 6d2ac8e

Browse files
author
Bart Veneman
committed
rebased
1 parent badea71 commit 6d2ac8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,22 +401,22 @@ function analyze(css, options = {}) {
401401
if (node.children && node.children.size > 1) {
402402
node.children.forEach(child => {
403403
if (child.type !== 'Operator') {
404-
durations.push(stringifyNode(child))
404+
durations.push(stringifyNode(child), node.loc)
405405
}
406406
})
407407
} else {
408-
durations.push(stringifyNode(node))
408+
durations.push(stringifyNode(node), node.loc)
409409
}
410410
break
411411
} else if (isProperty('transition-timing-function', property) || isProperty('animation-timing-function', property)) {
412412
if (node.children && node.children.size > 1) {
413413
node.children.forEach(child => {
414414
if (child.type !== 'Operator') {
415-
timingFunctions.push(stringifyNode(child))
415+
timingFunctions.push(stringifyNode(child), node.loc)
416416
}
417417
})
418418
} else {
419-
timingFunctions.push(stringifyNode(node))
419+
timingFunctions.push(stringifyNode(node), node.loc)
420420
}
421421
break
422422
} else if (isProperty('text-shadow', property)) {

0 commit comments

Comments
 (0)