Skip to content

Commit 0700e15

Browse files
committed
refactor
1 parent 859e864 commit 0700e15

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,20 @@ module.exports = function(css, options){
2020
column = ~i ? str.length-i : column + str.length;
2121
}
2222

23+
/**
24+
* Mark position and patch `node.position`.
25+
*/
26+
2327
function position() {
2428
var start = { line: lineno, column: column };
2529
if (!options.position) return positionNoop;
30+
2631
return function(node){
2732
node.position = {
2833
start: start,
2934
end: { line: lineno, column: column }
3035
};
36+
3137
whitespace();
3238
return node;
3339
}
@@ -36,6 +42,7 @@ module.exports = function(css, options){
3642
/**
3743
* Return `node`.
3844
*/
45+
3946
function positionNoop(node) {
4047
whitespace();
4148
return node;

0 commit comments

Comments
 (0)