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

Correct Syntax.Indexed construction.

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

View File

@ -142,7 +142,7 @@
} }
function Syntax(json, continuation) { function Syntax(json, continuation) {
if (json.indexed != null) { this.indexed = json.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; }
return this; return this;