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

Commit

Permalink
left logging code in tracer.js used for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
nwronski committed Jul 3, 2015
1 parent dd715f9 commit b2749e5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 88 deletions.
22 changes: 0 additions & 22 deletions demo/sqlite-parser-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -28103,28 +28103,6 @@ module.exports = (function() {
var lodash = require('lodash');

module.exports = (function (_) {
function log(event) {
function repeat(string, n) {
var result = "", i;

for (i = 0; i < n; i++) {
result += string;
}

return result;
}

function pad(string, length) {
return string + repeat(" ", length - string.length);
}

console.log(
event.location.start.line + ":" + event.location.start.column + "-"
+ event.location.end.line + ":" + event.location.end.column + " "
+ pad(event.type, 10) + " "
+ repeat(" ", event.indentation) + event.rule
);
}
Tracer = function Tracer() {
if (!(this instanceof Tracer)) {
return new Tracer();
Expand Down
22 changes: 0 additions & 22 deletions dist/sqlite-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -28230,28 +28230,6 @@ module.exports = (function() {
var lodash = require('lodash');

module.exports = (function (_) {
function log(event) {
function repeat(string, n) {
var result = "", i;

for (i = 0; i < n; i++) {
result += string;
}

return result;
}

function pad(string, length) {
return string + repeat(" ", length - string.length);
}

console.log(
event.location.start.line + ":" + event.location.start.column + "-"
+ event.location.end.line + ":" + event.location.end.column + " "
+ pad(event.type, 10) + " "
+ repeat(" ", event.indentation) + event.rule
);
}
Tracer = function Tracer() {
if (!(this instanceof Tracer)) {
return new Tracer();
Expand Down
22 changes: 0 additions & 22 deletions lib/tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,6 @@
var lodash = require('lodash');

module.exports = (function (_) {
function log(event) {
function repeat(string, n) {
var result = "", i;

for (i = 0; i < n; i++) {
result += string;
}

return result;
}

function pad(string, length) {
return string + repeat(" ", length - string.length);
}

console.log(
event.location.start.line + ":" + event.location.start.column + "-"
+ event.location.end.line + ":" + event.location.end.column + " "
+ pad(event.type, 10) + " "
+ repeat(" ", event.indentation) + event.rule
);
}
Tracer = function Tracer() {
if (!(this instanceof Tracer)) {
return new Tracer();
Expand Down
22 changes: 0 additions & 22 deletions src/tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,6 @@
var lodash = require('lodash');

module.exports = (function (_) {
function log(event) {
function repeat(string, n) {
var result = "", i;

for (i = 0; i < n; i++) {
result += string;
}

return result;
}

function pad(string, length) {
return string + repeat(" ", length - string.length);
}

console.log(
event.location.start.line + ":" + event.location.start.column + "-"
+ event.location.end.line + ":" + event.location.end.column + " "
+ pad(event.type, 10) + " "
+ repeat(" ", event.indentation) + event.rule
);
}
Tracer = function Tracer() {
if (!(this instanceof Tracer)) {
return new Tracer();
Expand Down

0 comments on commit b2749e5

Please sign in to comment.