Skip to content

Commit a0d85b6

Browse files
committed
WIP
1 parent 647fcbe commit a0d85b6

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/handlers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ function l(line, column) {
8686
function c(content, node) {
8787
return node.loc
8888
? [
89-
l(node.loc.start.line - 1, node.loc.start.column),
89+
l(node.loc.start.line, node.loc.start.column),
9090
content,
91-
l(node.loc.end.line - 1, node.loc.end.column)
91+
l(node.loc.end.line, node.loc.end.column)
9292
]
9393
: content;
9494
}

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export function print(node, opts = {}) {
9191
current_line.push([
9292
current_column,
9393
0, // source index is always zero
94-
command.line,
94+
command.line - 1,
9595
command.column
9696
]);
9797
break;

test/samples/large-file/expected.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@
191191
}));
192192
},
193193
eq(i) {
194-
var len = this.length, j = +i + (i < 0 ? len : 0);
194+
var len = this.length,
195+
j = +i + (i < 0 ? len : 0);
195196

196197
return this.pushStack(j >= 0 && j < len ? [this[j]] : []);
197198
},

test/samples/large-file/expected.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)