1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Correct Syntax.Leaf construction.

This commit is contained in:
Rob Rix 2015-10-23 19:22:22 -04:00
parent 96675b4de6
commit b42d5238d1

View File

@ -144,7 +144,7 @@
function Syntax(json, continuation) { function Syntax(json, continuation) {
if (json.indexed != null) { this.indexed = json.indexed.map(continuation); } if (json.indexed != null) { this.indexed = json.indexed.map(continuation); }
if (json.keyed != null) { this.keyed = (new Dictionary(json.keyed)).map(continuation); } if (json.keyed != null) { this.keyed = (new Dictionary(json.keyed)).map(continuation); }
if (json.leaf != null) { this.leaf = json; } if (json.leaf != null) { this.leaf = json.leaf; }
return this; return this;
} }