Fixing some silliness from my last checkin, tokenstr takes a tokentype, not the token itself. r=brendan
git-svn-id: svn://10.0.0.236/trunk@192762 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
b830c54063
commit
7dd9517c77
@ -278,8 +278,7 @@ Np.toString = function () {
|
||||
a.sort(function (a,b) { return (a.id < b.id) ? -1 : 1; });
|
||||
const INDENTATION = " ";
|
||||
var n = ++Node.indentLevel;
|
||||
var t = tokens[this.type];
|
||||
var s = "{\n" + INDENTATION.repeat(n) + "type: " + tokenstr(t);
|
||||
var s = "{\n" + INDENTATION.repeat(n) + "type: " + tokenstr(this.type);
|
||||
for (i = 0; i < a.length; i++)
|
||||
s += ",\n" + INDENTATION.repeat(n) + a[i].id + ": " + a[i].value;
|
||||
n = --Node.indentLevel;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user