1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Don’t be gross.

This commit is contained in:
Rob Rix 2015-10-23 13:32:54 -04:00
parent b03bacbcf2
commit 968980e17b

View File

@ -67,12 +67,9 @@
return this; return this;
} }
function Term(json, source) { function Term(json) {
this.source = source;
this.range = json.extract; this.range = json.extract;
this.syntax = syntax(json.unwrap, function(x) { return new Term(x, source); }); this.syntax = syntax(json.unwrap, function(x) { return new Term(x); });
this.syntax.source = source;
this.syntax.range = this.range;
return this; return this;
} }