Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit b2749e5

Browse files
committed
left logging code in tracer.js used for debugging purposes
1 parent dd715f9 commit b2749e5

File tree

4 files changed

+0
-88
lines changed

4 files changed

+0
-88
lines changed

demo/sqlite-parser-demo.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28103,28 +28103,6 @@ module.exports = (function() {
2810328103
var lodash = require('lodash');
2810428104

2810528105
module.exports = (function (_) {
28106-
function log(event) {
28107-
function repeat(string, n) {
28108-
var result = "", i;
28109-
28110-
for (i = 0; i < n; i++) {
28111-
result += string;
28112-
}
28113-
28114-
return result;
28115-
}
28116-
28117-
function pad(string, length) {
28118-
return string + repeat(" ", length - string.length);
28119-
}
28120-
28121-
console.log(
28122-
event.location.start.line + ":" + event.location.start.column + "-"
28123-
+ event.location.end.line + ":" + event.location.end.column + " "
28124-
+ pad(event.type, 10) + " "
28125-
+ repeat(" ", event.indentation) + event.rule
28126-
);
28127-
}
2812828106
Tracer = function Tracer() {
2812928107
if (!(this instanceof Tracer)) {
2813028108
return new Tracer();

dist/sqlite-parser.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28230,28 +28230,6 @@ module.exports = (function() {
2823028230
var lodash = require('lodash');
2823128231

2823228232
module.exports = (function (_) {
28233-
function log(event) {
28234-
function repeat(string, n) {
28235-
var result = "", i;
28236-
28237-
for (i = 0; i < n; i++) {
28238-
result += string;
28239-
}
28240-
28241-
return result;
28242-
}
28243-
28244-
function pad(string, length) {
28245-
return string + repeat(" ", length - string.length);
28246-
}
28247-
28248-
console.log(
28249-
event.location.start.line + ":" + event.location.start.column + "-"
28250-
+ event.location.end.line + ":" + event.location.end.column + " "
28251-
+ pad(event.type, 10) + " "
28252-
+ repeat(" ", event.indentation) + event.rule
28253-
);
28254-
}
2825528233
Tracer = function Tracer() {
2825628234
if (!(this instanceof Tracer)) {
2825728235
return new Tracer();

lib/tracer.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,6 @@
66
var lodash = require('lodash');
77

88
module.exports = (function (_) {
9-
function log(event) {
10-
function repeat(string, n) {
11-
var result = "", i;
12-
13-
for (i = 0; i < n; i++) {
14-
result += string;
15-
}
16-
17-
return result;
18-
}
19-
20-
function pad(string, length) {
21-
return string + repeat(" ", length - string.length);
22-
}
23-
24-
console.log(
25-
event.location.start.line + ":" + event.location.start.column + "-"
26-
+ event.location.end.line + ":" + event.location.end.column + " "
27-
+ pad(event.type, 10) + " "
28-
+ repeat(" ", event.indentation) + event.rule
29-
);
30-
}
319
Tracer = function Tracer() {
3210
if (!(this instanceof Tracer)) {
3311
return new Tracer();

src/tracer.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,6 @@
66
var lodash = require('lodash');
77

88
module.exports = (function (_) {
9-
function log(event) {
10-
function repeat(string, n) {
11-
var result = "", i;
12-
13-
for (i = 0; i < n; i++) {
14-
result += string;
15-
}
16-
17-
return result;
18-
}
19-
20-
function pad(string, length) {
21-
return string + repeat(" ", length - string.length);
22-
}
23-
24-
console.log(
25-
event.location.start.line + ":" + event.location.start.column + "-"
26-
+ event.location.end.line + ":" + event.location.end.column + " "
27-
+ pad(event.type, 10) + " "
28-
+ repeat(" ", event.indentation) + event.rule
29-
);
30-
}
319
Tracer = function Tracer() {
3210
if (!(this instanceof Tracer)) {
3311
return new Tracer();

0 commit comments

Comments
 (0)