We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 859e864 commit 0700e15Copy full SHA for 0700e15
index.js
@@ -20,14 +20,20 @@ module.exports = function(css, options){
20
column = ~i ? str.length-i : column + str.length;
21
}
22
23
+ /**
24
+ * Mark position and patch `node.position`.
25
+ */
26
+
27
function position() {
28
var start = { line: lineno, column: column };
29
if (!options.position) return positionNoop;
30
31
return function(node){
32
node.position = {
33
start: start,
34
end: { line: lineno, column: column }
35
};
36
37
whitespace();
38
return node;
39
@@ -36,6 +42,7 @@ module.exports = function(css, options){
42
/**
43
* Return `node`.
44
*/
45
46
function positionNoop(node) {
40
47
41
48
0 commit comments